Searched refs:AudioTrack (Results 1 - 25 of 35) sorted by relevance

12

/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/audio/
H A DMediaAudioTrackTest.java24 import android.media.AudioTrack;
32 * Junit / Instrumentation test case for the media AudioTrack api
87 AudioTrack track = null;
89 track = new AudioTrack(
94 AudioTrack.getMinBufferSize(testSampleRates[i],
115 +"AudioTrack(streamType="+_inTest_streamType
119 +", bufferSizeInBytes=" + AudioTrack.getMinBufferSize(testSampleRates[i],
134 // AudioTrack constructor and AudioTrack.getMinBufferSize(...) for 16bit PCM
137 //Test case 1: constructor for streaming AudioTrack, mon
[all...]
/frameworks/base/core/java/android/speech/tts/
H A DBlockingAudioTrack.java7 import android.media.AudioTrack;
12 * Exposes parts of the {@link AudioTrack} API by delegating calls to an
13 * underlying {@link AudioTrack}. Additionally, provides methods like
24 * The minimum increment of time to wait for an AudioTrack to finish
30 * The maximum increment of time to sleep while waiting for an AudioTrack
43 * Minimum size of the buffer of the underlying {@link android.media.AudioTrack}
59 * {@link AudioTrack#stop()} to send pending buffers to the mixer, and slightly
74 private AudioTrack mAudioTrack;
96 AudioTrack track = createStreamingAudioTrack();
118 AudioTrack trac
[all...]
H A DAudioPlaybackQueueItem.java20 import android.media.AudioTrack;
/frameworks/av/include/media/
H A DAudioTrack.h36 class AudioTrack : public RefBase class in namespace:android
40 /* Events used by AudioTrack callback function (callback_t).
41 * Keep in sync with frameworks/base/media/java/android/media/AudioTrack.java NATIVE_EVENT_*.
56 // Not currently used by android.media.AudioTrack.
98 * event: type of event notified (see enum AudioTrack::event_type).
101 * - EVENT_MORE_DATA: pointer to AudioTrack::Buffer struct. The callback must not write
117 * an AudioTrack object.
130 /* How data is transferred to AudioTrack
140 /* Constructs an uninitialized AudioTrack. No connection with
143 AudioTrack();
[all...]
H A DJetPlayer.h24 #include <media/AudioTrack.h>
91 sp<AudioTrack> mAudioTrack; // and we play it in this audio track
H A DIAudioTrack.h38 DECLARE_META_INTERFACE(AudioTrack);
84 or Tungsten time. The values for target are defined in AudioTrack.h */
H A DToneGenerator.h24 #include <media/AudioTrack.h>
173 TONE_STOPPED, // ToneGenerator is stopped: the AudioTrack will be stopped
267 sp<AudioTrack> mpAudioTrack; // Pointer to audio track used for playback
H A DSoundPool.h24 #include <media/AudioTrack.h>
154 sp<AudioTrack> mAudioTrack;
191 // called from AudioTrack thread
/frameworks/base/core/jni/
H A Dandroid_media_AudioTrack.cpp18 #define LOG_TAG "AudioTrack-JNI"
28 #include <media/AudioTrack.h>
42 static const char* const kClassPathName = "android/media/AudioTrack";
48 jfieldID nativeTrackInJavaObj; // stores in Java the native AudioTrack object
49 jfieldID jniData; // stores in Java additional resources used by the native AudioTrack
50 jfieldID fieldStreamType; // ... mStreamType field in the AudioTrack Java object
68 // keep these values in sync with AudioTrack.java
90 mMemHeap = new MemoryHeapBase(sizeInBytes, 0, "AudioTrack Heap Base");
124 case AudioTrack::EVENT_MARKER: {
138 case AudioTrack
[all...]
/frameworks/av/media/libmedia/
H A DAudioTrack.cpp19 #define LOG_TAG "AudioTrack"
27 #include <media/AudioTrack.h>
55 status_t AudioTrack::getMinFrameCount(
104 ALOGE("AudioTrack::getMinFrameCount failed for streamType %d, sampleRate %d",
115 AudioTrack::AudioTrack() function in class:android::AudioTrack
128 AudioTrack::AudioTrack( function in class:android::AudioTrack
156 AudioTrack::AudioTrack( function in class:android::AudioTrack
[all...]
H A DSoundPoolThread.h22 #include <media/AudioTrack.h>
H A DSoundPool.cpp26 #include <media/AudioTrack.h>
560 sp<AudioTrack> oldTrack;
561 sp<AudioTrack> newTrack;
609 // The toggle is concatenated with the SoundChannel address and passed to AudioTrack
619 newTrack = new AudioTrack(streamType, sampleRate, sample->format(),
622 newTrack = new AudioTrack(streamType, sampleRate, sample->format(),
629 ALOGE("Error creating AudioTrack");
636 // From now on, AudioTrack callbacks received with previous toggle value will be ignored.
705 AudioTrack::Buffer* b = NULL;
706 if (event == AudioTrack
[all...]
H A DAndroid.mk15 AudioTrack.cpp \
/frameworks/base/media/tests/audiotests/
H A Dshared_mem_test.cpp23 #include <media/AudioTrack.h>
91 heap = new MemoryDealer(1024*1024, "AudioTrack Heap Base");
98 sp<AudioTrack> track = new AudioTrack(AUDIO_STREAM_MUSIC,// stream type
/frameworks/av/cmds/stagefright/
H A DSimplePlayer.h25 struct AudioTrack;
81 sp<AudioTrack> mAudioTrack;
/frameworks/base/media/java/android/media/audiopolicy/
H A DAudioPolicy.java29 import android.media.AudioTrack;
237 String msg = forTrack ? "Invalid null AudioMix for AudioTrack creation"
329 checkMixReadyToUse(mix, false/*not for an AudioTrack*/);
352 * Create an {@link AudioTrack} instance that is associated with the given {@link AudioMix}.
357 * @return a new {@link AudioTrack} instance whose data format is the one defined in the
363 public AudioTrack createAudioTrackSource(AudioMix mix) throws IllegalArgumentException {
365 Log.e(TAG, "Cannot create AudioTrack source for AudioMix");
368 checkMixReadyToUse(mix, true/*for an AudioTrack*/);
369 // create the AudioTrack, configured for loop back, using the same format as the mix
370 AudioTrack a
[all...]
/frameworks/av/include/media/stagefright/
H A DAudioPlayer.h29 class AudioTrack;
83 sp<AudioTrack> mAudioTrack;
/frameworks/base/media/java/android/media/
H A DAudioTrack.java44 * The AudioTrack class manages and plays a single audio resource for Java applications.
46 * achieved by "pushing" the data to the AudioTrack object using one of the
50 * <p>An AudioTrack instance can operate under two modes: static or streaming.<br>
51 * In Streaming mode, the application writes a continuous stream of data to the AudioTrack, using
68 * <p>Upon creation, an AudioTrack object initializes its associated audio buffer.
69 * The size of this buffer, specified during the construction, determines how long an AudioTrack
71 * For an AudioTrack using the static mode, this size is the maximum size of the sound that can
76 * AudioTrack is not final and thus permits subclasses, but such use is not recommended.
78 public class AudioTrack class
97 /** Maximum value for AudioTrack channe
313 public AudioTrack(int streamType, int sampleRateInHz, int channelConfig, int audioFormat, method in class:AudioTrack
355 public AudioTrack(int streamType, int sampleRateInHz, int channelConfig, int audioFormat, method in class:AudioTrack
391 public AudioTrack(AudioAttributes attributes, AudioFormat format, int bufferSizeInBytes, method in class:AudioTrack
[all...]
H A DJetPlayer.java109 * Looper associated with the thread that creates the AudioTrack instance
164 int buffSizeInBytes = AudioTrack.getMinBufferSize(JET_OUTPUT_RATE,
167 if ((buffSizeInBytes != AudioTrack.ERROR)
168 && (buffSizeInBytes != AudioTrack.ERROR_BAD_VALUE)) {
483 // no given handler, use the looper the AudioTrack was created in
/frameworks/av/media/libstagefright/
H A DAudioPlayer.cpp25 #include <media/AudioTrack.h>
224 // playing to an AudioTrack, set up mask if necessary
231 mAudioTrack = new AudioTrack(
449 case AudioTrack::EVENT_MORE_DATA:
451 AudioTrack::Buffer *buffer = (AudioTrack::Buffer *)info;
457 case AudioTrack::EVENT_STREAM_END:
564 // AudioTrack that you haven't heard yet.
569 // submit to the AudioTrack by returning from this
/frameworks/base/media/java/android/media/audiofx/
H A DLoudnessEnhancer.java19 import android.media.AudioTrack;
34 * To attach the LoudnessEnhancer to a particular AudioTrack or MediaPlayer,
35 * specify the audio session ID of this AudioTrack or MediaPlayer when constructing the effect
36 * (see {@link AudioTrack#getAudioSessionId()} and {@link MediaPlayer#getAudioSessionId()}).
70 * will be attached to the MediaPlayer or AudioTrack in the same audio session.
96 * will be attached to the MediaPlayer or AudioTrack in the same audio session.
/frameworks/opt/net/voip/src/jni/rtp/
H A DAudioGroup.cpp42 #include <media/AudioTrack.h>
787 // Find out the frame count for AudioTrack and AudioRecord.
790 if (AudioTrack::getMinFrameCount(&output, AUDIO_STREAM_VOICE_CALL,
807 // Initialize AudioTrack and AudioRecord.
808 sp<AudioTrack> track = new AudioTrack();
814 AudioTrack::TRANSFER_OBTAIN) != NO_ERROR ||
859 // Start AudioRecord before AudioTrack. This prevents AudioTrack from being
882 AudioTrack
[all...]
/frameworks/wilhelm/src/android/
H A DAudioPlayer_to_android.cpp274 // note that AudioTrack has mute() but not MediaPlayer, so it's easier to use volume
275 // to mute for both rather than calling mute() for AudioTrack
338 //SL_LOGV("received event EVENT_MARKER from AudioTrack");
355 //SL_LOGV("received event EVENT_NEW_POS from AudioTrack");
591 // Buffer Queue to AudioTrack
1176 // Callback associated with an AudioTrack of an SL ES AudioPlayer that gets its data
1177 // from a buffer queue. This will not be called once the AudioTrack has been destroyed.
1189 case android::AudioTrack::EVENT_MORE_DATA: {
1190 //SL_LOGV("received event EVENT_MORE_DATA from AudioTrack TID=%d", gettid());
1194 android::AudioTrack
[all...]
/frameworks/av/media/libmediaplayerservice/
H A DMediaPlayerService.h37 class AudioTrack;
131 sp<AudioTrack> mTrack;
132 sp<AudioTrack> mRecycledTrack;
154 // CallbackData is what is passed to the AudioTrack as the "user" data.
H A DMediaPlayerService.cpp56 #include <media/AudioTrack.h>
1586 frameCount = 0; // AudioTrack will get frame count from AudioFlinger
1651 sp<AudioTrack> t;
1660 ALOGV("creating new AudioTrack");
1664 t = new AudioTrack(
1675 AudioTrack::TRANSFER_CALLBACK,
1681 t = new AudioTrack(
1692 AudioTrack::TRANSFER_DEFAULT,
1704 // successful AudioTrack initialization implies a legacy stream type was generated
1896 AudioTrack
[all...]

Completed in 781 milliseconds

12