Home
last modified time | relevance | path

Searched refs:AudioTrack (Results 1 – 25 of 48) sorted by relevance

12

/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/audio/
DMediaAudioTrackTest.java24 import android.media.AudioTrack;
87 AudioTrack track = null; in constructorTestMultiSampleRate()
89 track = new AudioTrack( in constructorTestMultiSampleRate()
94 AudioTrack.getMinBufferSize(testSampleRates[i], in constructorTestMultiSampleRate()
119 +", bufferSizeInBytes=" + AudioTrack.getMinBufferSize(testSampleRates[i], in constructorTestMultiSampleRate()
142 AudioManager.STREAM_MUSIC, AudioTrack.MODE_STREAM, in testConstructorMono16MusicStream()
144 AudioTrack.STATE_INITIALIZED); in testConstructorMono16MusicStream()
155 AudioManager.STREAM_MUSIC, AudioTrack.MODE_STREAM, in testConstructorStereo16MusicStream()
157 AudioTrack.STATE_INITIALIZED); in testConstructorStereo16MusicStream()
168 AudioManager.STREAM_MUSIC, AudioTrack.MODE_STATIC, in testConstructorMono16MusicStatic()
[all …]
/frameworks/base/core/jni/
Dandroid_media_AudioTrack.cpp131 if (event == AudioTrack::EVENT_MORE_DATA) { in audioCallback()
133 AudioTrack::Buffer* pBuff = (AudioTrack::Buffer*)info; in audioCallback()
136 } else if (event == AudioTrack::EVENT_MARKER) { in audioCallback()
150 } else if (event == AudioTrack::EVENT_NEW_POS) { in audioCallback()
280 AudioTrack* lpTrack = new AudioTrack(); in android_media_AudioTrack_native_setup()
371 AudioTrack *lpTrack = (AudioTrack *)env->GetIntField( in android_media_AudioTrack_start()
387 AudioTrack *lpTrack = (AudioTrack *)env->GetIntField( in android_media_AudioTrack_stop()
403 AudioTrack *lpTrack = (AudioTrack *)env->GetIntField( in android_media_AudioTrack_pause()
419 AudioTrack *lpTrack = (AudioTrack *)env->GetIntField( in android_media_AudioTrack_flush()
434 AudioTrack *lpTrack = (AudioTrack *)env->GetIntField( in android_media_AudioTrack_set_volume()
[all …]
/frameworks/base/media/libmedia/
DAudioTrack.cpp52 status_t AudioTrack::getMinFrameCount( in getMinFrameCount()
81 AudioTrack::AudioTrack() in AudioTrack() function in android::AudioTrack
86 AudioTrack::AudioTrack( in AudioTrack() function in android::AudioTrack
104 AudioTrack::AudioTrack( in AudioTrack() function in android::AudioTrack
122 AudioTrack::~AudioTrack() in ~AudioTrack()
141 status_t AudioTrack::set( in set()
269 status_t AudioTrack::initCheck() const in initCheck()
276 uint32_t AudioTrack::latency() const in latency()
281 int AudioTrack::streamType() const in streamType()
286 int AudioTrack::format() const in format()
[all …]
DAndroid.mk15 AudioTrack.cpp \
/frameworks/base/include/media/
DAudioTrack.h41 class AudioTrack
118 AudioTrack();
143 AudioTrack( int streamType,
163 AudioTrack( int streamType,
177 ~AudioTrack();
421 AudioTrack(const AudioTrack& other);
422 AudioTrack& operator = (const AudioTrack& other);
428 AudioTrackThread(AudioTrack& receiver, bool bCanCallJava = false);
430 friend class AudioTrack;
434 AudioTrack& mReceiver;
DIAudioTrack.h36 DECLARE_META_INTERFACE(AudioTrack);
DJetPlayer.h93 AudioTrack* mAudioTrack; // and we play it in this audio track
/frameworks/base/media/java/android/media/
DAudioTrack.java62 public class AudioTrack class
263 public AudioTrack(int streamType, int sampleRateInHz, int channelConfig, int audioFormat, in AudioTrack() method in AudioTrack
303 public AudioTrack(int streamType, int sampleRateInHz, int channelConfig, int audioFormat, in AudioTrack() method in AudioTrack
324 int initResult = native_setup(new WeakReference<AudioTrack>(this), in AudioTrack()
473 return AudioTrack.VOLUME_MIN; in getMinVolume()
482 return AudioTrack.VOLUME_MAX; in getMaxVolume()
624 return AudioTrack.ERROR_BAD_VALUE; in getMinBufferSize()
630 return AudioTrack.ERROR_BAD_VALUE; in getMinBufferSize()
635 return AudioTrack.ERROR_BAD_VALUE; in getMinBufferSize()
641 return AudioTrack.ERROR; in getMinBufferSize()
[all …]
DJetPlayer.java164 int buffSizeInBytes = AudioTrack.getMinBufferSize(JET_OUTPUT_RATE, in JetPlayer()
167 if ((buffSizeInBytes != AudioTrack.ERROR) in JetPlayer()
168 && (buffSizeInBytes != AudioTrack.ERROR_BAD_VALUE)) { in JetPlayer()
/frameworks/base/core/java/android/speech/tts/
DAudioPlaybackHandler.java19 import android.media.AudioTrack;
83 AudioTrack current = ((SynthesisMessageParams) token).getAudioTrack(); in stop()
359 final AudioTrack audioTrack = createStreamingAudioTrack(param); in handleSynthesisStart()
379 final AudioTrack audioTrack = param.getAudioTrack(); in handleSynthesisDataAvailable()
388 if (playState == AudioTrack.PLAYSTATE_STOPPED) { in handleSynthesisDataAvailable()
411 final AudioTrack audioTrack = params.getAudioTrack(); in handleSynthesisDone()
503 final AudioTrack audioTrack = params.mAudioTrack; in blockUntilCompletion()
511 audioTrack.getPlayState() == AudioTrack.PLAYSTATE_PLAYING) { in blockUntilCompletion()
558 private static AudioTrack createStreamingAudioTrack(SynthesisMessageParams params) { in createStreamingAudioTrack()
564 = AudioTrack.getMinBufferSize(sampleRateInHz, channelConfig, audioFormat); in createStreamingAudioTrack()
[all …]
DSynthesisMessageParams.java19 import android.media.AudioTrack;
40 volatile AudioTrack mAudioTrack;
115 void setAudioTrack(AudioTrack audioTrack) { in setAudioTrack()
119 AudioTrack getAudioTrack() { in getAudioTrack()
/frameworks/base/media/java/android/media/videoeditor/
DAudioTrack.java31 public class AudioTrack { class
74 private AudioTrack() throws IOException { in AudioTrack() method in AudioTrack
90 public AudioTrack(VideoEditor editor, String audioTrackId, String filename) throws IOException { in AudioTrack() method in AudioTrack
123 AudioTrack(VideoEditor editor, String audioTrackId, String filename, in AudioTrack() method in AudioTrack
645 if (!(object instanceof AudioTrack)) { in equals()
648 return mUniqueId.equals(((AudioTrack)object).mUniqueId); in equals()
DVideoEditor.java596 public void addAudioTrack(AudioTrack audioTrack); in addAudioTrack()
615 public void insertAudioTrack(AudioTrack audioTrack, String afterAudioTrackId); in insertAudioTrack()
642 public AudioTrack removeAudioTrack(String audioTrackId); in removeAudioTrack()
654 public List<AudioTrack> getAllAudioTracks(); in getAllAudioTracks()
663 public AudioTrack getAudioTrack(String audioTrackId); in getAudioTrack()
DVideoEditorImpl.java130 private final List<AudioTrack> mAudioTracks = new ArrayList<AudioTrack>();
188 public synchronized void addAudioTrack(AudioTrack audioTrack) { in addAudioTrack()
510 public List<AudioTrack> getAllAudioTracks() { in getAllAudioTracks()
538 public AudioTrack getAudioTrack(String audioTrackId) { in getAudioTrack()
539 for (AudioTrack at : mAudioTracks) { in getAudioTrack()
600 public synchronized void insertAudioTrack(AudioTrack audioTrack, in insertAudioTrack()
612 AudioTrack at = mAudioTracks.get(i); in insertAudioTrack()
788 public synchronized AudioTrack removeAudioTrack(String audioTrackId) { in removeAudioTrack()
789 final AudioTrack audioTrack = getAudioTrack(audioTrackId); in removeAudioTrack()
1075 final AudioTrack audioTrack = parseAudioTrack(parser); in load()
[all …]
/frameworks/base/media/jni/soundpool/
DSoundPool.cpp550 AudioTrack* oldTrack; in play()
551 AudioTrack* newTrack; in play()
610 newTrack = new AudioTrack(streamType, sampleRate, sample->format(), in play()
613 newTrack = new AudioTrack(streamType, sampleRate, sample->format(), in play()
697 AudioTrack::Buffer* b = NULL; in process()
698 if (event == AudioTrack::EVENT_MORE_DATA) { in process()
699 b = static_cast<AudioTrack::Buffer *>(info); in process()
714 if (event == AudioTrack::EVENT_MORE_DATA) { in process()
750 } else if (event == AudioTrack::EVENT_UNDERRUN) { in process()
753 } else if (event == AudioTrack::EVENT_LOOP_END) { in process()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/
DVideoEditorStressTest.java28 import android.media.videoeditor.AudioTrack;
725 final AudioTrack mediaItem3 = new AudioTrack(mVideoEditor, in testStressMediaProperties()
1066 final AudioTrack audioTrack1 = new AudioTrack(mVideoEditor, in testStressOverlayTransKenBurn()
1116 final AudioTrack audioTrack1 = new AudioTrack(mVideoEditor, in testStressAudioTrackVideo()
1129 final AudioTrack audioTrack2 = new AudioTrack(mVideoEditor, in testStressAudioTrackVideo()
1210 final AudioTrack audioTrack1 = new AudioTrack(mVideoEditor, in testStressStoryBoard()
1215 final AudioTrack audioTrack2 = new AudioTrack(mVideoEditor, in testStressStoryBoard()
1252 final AudioTrack mediaItem1 = new AudioTrack(mVideoEditor, in testStressAudioTrackOnly()
/frameworks/media/libvideoeditor/lvpp/
DVideoEditorPlayer.cpp412 AudioTrack *t; in open()
414 t = new AudioTrack( in open()
425 t = new AudioTrack( in open()
519 if (event != AudioTrack::EVENT_MORE_DATA) { in CallbackWrapper()
524 AudioTrack::Buffer *buffer = (AudioTrack::Buffer *)info; in CallbackWrapper()
DAudioPlayerBase.h29 class AudioTrack; variable
70 AudioTrack *mAudioTrack;
DAudioPlayerBase.cpp134 mAudioTrack = new AudioTrack( in start()
273 if (event != AudioTrack::EVENT_MORE_DATA) { in AudioCallback()
277 AudioTrack::Buffer *buffer = (AudioTrack::Buffer *)info; in AudioCallback()
DVideoEditorAudioPlayer.h35 class AudioTrack; variable
/frameworks/base/include/media/stagefright/
DAudioPlayer.h29 class AudioTrack; variable
70 AudioTrack *mAudioTrack;
/frameworks/base/media/libstagefright/
DAudioPlayer.cpp140 mAudioTrack = new AudioTrack( in start()
281 if (event != AudioTrack::EVENT_MORE_DATA) { in AudioCallback()
285 AudioTrack::Buffer *buffer = (AudioTrack::Buffer *)info; in AudioCallback()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/
DVideoEditorHelper.java29 import android.media.videoeditor.AudioTrack;
292 public AudioTrack createAudio(VideoEditor videoEditor, String audioTrackId, in createAudio()
294 AudioTrack audio = null; in createAudio()
296 audio = new AudioTrack(videoEditor, audioTrackId, filename); in createAudio()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/videoeditor/
DVideoEditorAPITest.java24 import android.media.videoeditor.AudioTrack;
737 final AudioTrack audioTrack = mVideoEditorHelper.createAudio( in testAudioTrack()
765 final AudioTrack audioTrack = mVideoEditorHelper.createAudio( in testAudioTrackExtractBoundaries()
833 final AudioTrack audioTrack = mVideoEditorHelper.createAudio( in testAudioTrackSetGetTime()
849 final AudioTrack audioTrack = mVideoEditorHelper.createAudio( in testAudioTrackEnableDucking()
918 final AudioTrack audioTrack = mVideoEditorHelper.createAudio( in testAudioTrackLooping()
947 final AudioTrack audioTrack = mVideoEditorHelper.createAudio( in testAudioTrackWaveFormData()
992 final AudioTrack audioTrack = mVideoEditorHelper.createAudio( in testAudioTrackMute()
1010 final AudioTrack audioTrack = mVideoEditorHelper.createAudio( in testAudioTrackGetSetVolume()
2507 final AudioTrack audioTrack = mVideoEditorHelper.createAudio( in testVideoEditorAPI()
[all …]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/performance/
DVideoEditorPerformance.java27 import android.media.videoeditor.AudioTrack;
510 final AudioTrack audioTrack = mVideoEditorHelper.createAudio( in testPerformanceExport()
1017 final AudioTrack audioTrack1 = new AudioTrack(mVideoEditor, in testPerformanceWithAudioTrack()
1032 final AudioTrack audioTrack2 = new AudioTrack(mVideoEditor, in testPerformanceWithAudioTrack()

12