Searched refs:AudioTrack (Results 1 - 25 of 48) 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.java6 import android.media.AudioTrack;
10 * Exposes parts of the {@link AudioTrack} API by delegating calls to an
11 * underlying {@link AudioTrack}. Additionally, provides methods like
22 * The minimum increment of time to wait for an AudioTrack to finish
28 * The maximum increment of time to sleep while waiting for an AudioTrack
41 * Minimum size of the buffer of the underlying {@link android.media.AudioTrack}
58 * {@link AudioTrack#stop()} to send pending buffers to the mixer, and slightly
73 private AudioTrack mAudioTrack;
96 AudioTrack track = createStreamingAudioTrack();
118 AudioTrack trac
[all...]
/frameworks/av/include/media/
H A DAudioTrack.h36 class AudioTrack : public RefBase class in namespace:android
45 /* Events used by AudioTrack callback function (callback_t).
46 * Keep in sync with frameworks/base/media/java/android/media/AudioTrack.java NATIVE_EVENT_*.
61 // Not currently used by android.media.AudioTrack.
102 * event: type of event notified (see enum AudioTrack::event_type).
105 * - EVENT_MORE_DATA: pointer to AudioTrack::Buffer struct. The callback must not write
121 * an AudioTrack object.
132 /* How data is transferred to AudioTrack
142 /* Constructs an uninitialized AudioTrack. No connection with
145 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;
192 // called from AudioTrack thread
/frameworks/av/media/libmedia/
H A DAudioTrack.cpp20 #define LOG_TAG "AudioTrack"
25 #include <media/AudioTrack.h>
38 status_t AudioTrack::getMinFrameCount(
84 AudioTrack::AudioTrack() function in class:android::AudioTrack
93 AudioTrack::AudioTrack( function in class:android::AudioTrack
119 AudioTrack::AudioTrack( function in class:android::AudioTrack
144 AudioTrack
[all...]
H A DSoundPoolThread.h22 #include <media/AudioTrack.h>
H A DSoundPool.cpp23 #include <media/AudioTrack.h>
548 sp<AudioTrack> oldTrack;
549 sp<AudioTrack> newTrack;
597 // The toggle is concatenated with the SoundChannel address and passed to AudioTrack
608 newTrack = new AudioTrack(streamType, sampleRate, sample->format(),
611 newTrack = new AudioTrack(streamType, sampleRate, sample->format(),
618 ALOGE("Error creating AudioTrack");
625 // From now on, AudioTrack callbacks received with previous toggle value will be ignored.
694 AudioTrack::Buffer* b = NULL;
695 if (event == AudioTrack
[all...]
/frameworks/base/core/jni/
H A Dandroid_media_AudioTrack.cpp18 #define LOG_TAG "AudioTrack-JNI"
26 #include <media/AudioTrack.h>
38 static const char* const kClassPathName = "android/media/AudioTrack";
43 jfieldID nativeTrackInJavaObj; // stores in Java the native AudioTrack object
44 jfieldID jniData; // stores in Java additional resources used by the native AudioTrack
55 // keep these values in sync with AudioTrack.java
82 mMemHeap = new MemoryHeapBase(sizeInBytes, 0, "AudioTrack Heap Base");
135 case AudioTrack::EVENT_MARKER: {
149 case AudioTrack::EVENT_NEW_POS: {
173 static sp<AudioTrack> getAudioTrac
[all...]
/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/videoeditor/
H A DAudioTrack.java31 public class AudioTrack { class
74 private AudioTrack() throws IOException { method in class:AudioTrack
90 public AudioTrack(VideoEditor editor, String audioTrackId, String filename) throws IOException { method in class:AudioTrack
123 AudioTrack(VideoEditor editor, String audioTrackId, String filename, method in class:AudioTrack
645 if (!(object instanceof AudioTrack)) {
648 return mUniqueId.equals(((AudioTrack)object).mUniqueId);
H A DVideoEditor.java153 * processing a media object such as a Transition, AudioTrack & Kenburns
157 * or AudioTrack
596 * Add the specified AudioTrack to the storyboard. Note: Specific
600 * @param audioTrack The AudioTrack to add
607 public void addAudioTrack(AudioTrack audioTrack);
626 public void insertAudioTrack(AudioTrack audioTrack, String afterAudioTrackId);
629 * Move an AudioTrack after the AudioTrack with the specified id.
631 * @param audioTrackId The id of the AudioTrack to move
632 * @param afterAudioTrackId Move the AudioTrack identifie
[all...]
H A DVideoEditorImpl.java130 private final List<AudioTrack> mAudioTracks = new ArrayList<AudioTrack>();
188 public synchronized void addAudioTrack(AudioTrack audioTrack) {
200 * Add the audio track to AudioTrack list
510 public List<AudioTrack> getAllAudioTracks() {
538 public AudioTrack getAudioTrack(String audioTrackId) {
539 for (AudioTrack at : mAudioTracks) {
600 public synchronized void insertAudioTrack(AudioTrack audioTrack,
612 AudioTrack at = mAudioTracks.get(i);
620 throw new IllegalArgumentException("AudioTrack no
[all...]
/frameworks/base/media/java/android/media/
H A DAudioTrack.java28 * The AudioTrack class manages and plays a single audio resource for Java applications.
30 * achieved by "pushing" the data to the AudioTrack object using one of the
33 * <p>An AudioTrack instance can operate under two modes: static or streaming.<br>
34 * In Streaming mode, the application writes a continuous stream of data to the AudioTrack, using
51 * <p>Upon creation, an AudioTrack object initializes its associated audio buffer.
52 * The size of this buffer, specified during the construction, determines how long an AudioTrack
54 * For an AudioTrack using the static mode, this size is the maximum size of the sound that can
59 * AudioTrack is not final and thus permits subclasses, but such use is not recommended.
61 public class AudioTrack class
76 /** indicates AudioTrack stat
262 public AudioTrack(int streamType, int sampleRateInHz, int channelConfig, int audioFormat, method in class:AudioTrack
303 public AudioTrack(int streamType, int sampleRateInHz, int channelConfig, int audioFormat, 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)) {
481 // no given handler, use the looper the AudioTrack was created in
/frameworks/av/include/media/stagefright/
H A DAudioPlayer.h29 class AudioTrack;
83 sp<AudioTrack> mAudioTrack;
/frameworks/av/libvideoeditor/lvpp/
H A DVideoEditorAudioPlayer.h34 class AudioTrack;
94 sp<AudioTrack> mAudioTrack;
H A DVideoEditorPlayer.cpp437 sp<AudioTrack> t;
439 t = new AudioTrack(
449 t = new AudioTrack(
545 if (event != AudioTrack::EVENT_MORE_DATA) {
550 AudioTrack::Buffer *buffer = (AudioTrack::Buffer *)info;
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/
H A DVideoEditorStressTest.java28 import android.media.videoeditor.AudioTrack;
718 final AudioTrack mediaItem3 = new AudioTrack(mVideoEditor,
1055 final AudioTrack audioTrack1 = new AudioTrack(mVideoEditor,
1104 final AudioTrack audioTrack1 = new AudioTrack(mVideoEditor,
1117 final AudioTrack audioTrack2 = new AudioTrack(mVideoEditor,
1197 final AudioTrack audioTrack
[all...]
/frameworks/av/media/libstagefright/
H A DAudioPlayer.cpp23 #include <media/AudioTrack.h>
215 // playing to an AudioTrack, set up mask if necessary
222 mAudioTrack = new AudioTrack(
439 case AudioTrack::EVENT_MORE_DATA:
441 AudioTrack::Buffer *buffer = (AudioTrack::Buffer *)info;
447 case AudioTrack::EVENT_STREAM_END:
554 // AudioTrack that you haven't heard yet.
559 // 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/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/
H A DVideoEditorHelper.java29 import android.media.videoeditor.AudioTrack;
288 *This Method creates object of Type AudioTrack
292 public AudioTrack createAudio(VideoEditor videoEditor, String audioTrackId,
294 AudioTrack audio = null;
296 audio = new AudioTrack(videoEditor, audioTrackId, filename);
297 assertNotNull("Cant not create an object of an AudioTrack " +
300 assertTrue("Can not create object of an AudioTrack " +
303 assertTrue("Can not create object of an AudioTrack " +

Completed in 426 milliseconds

12