Home
last modified time | relevance | path

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

123

/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/java/android/speech/tts/
DBlockingAudioTrack.java6 import android.media.AudioTrack;
73 private AudioTrack mAudioTrack;
95 AudioTrack track = createStreamingAudioTrack(); in init()
117 AudioTrack track = null; in write()
132 AudioTrack track = null; in waitAndRelease()
191 private static int writeToAudioTrack(AudioTrack audioTrack, byte[] bytes) { in writeToAudioTrack()
192 if (audioTrack.getPlayState() != AudioTrack.PLAYSTATE_PLAYING) { in writeToAudioTrack()
210 private AudioTrack createStreamingAudioTrack() { in createStreamingAudioTrack()
214 = AudioTrack.getMinBufferSize(mSampleRateInHz, channelConfig, mAudioFormat); in createStreamingAudioTrack()
221 AudioTrack audioTrack = new AudioTrack(mAudioParams.mAudioAttributes, in createStreamingAudioTrack()
[all …]
/frameworks/base/core/jni/
Dandroid_media_AudioTrack.cpp130 case AudioTrack::EVENT_MARKER: { in audioCallback()
144 case AudioTrack::EVENT_NEW_POS: { in audioCallback()
168 static sp<AudioTrack> getAudioTrack(JNIEnv* env, jobject thiz) in getAudioTrack()
171 AudioTrack* const at = in getAudioTrack()
172 (AudioTrack*)env->GetLongField(thiz, javaAudioTrackFields.nativeTrackInJavaObj); in getAudioTrack()
173 return sp<AudioTrack>(at); in getAudioTrack()
176 static sp<AudioTrack> setAudioTrack(JNIEnv* env, jobject thiz, const sp<AudioTrack>& at) in setAudioTrack()
179 sp<AudioTrack> old = in setAudioTrack()
180 (AudioTrack*)env->GetLongField(thiz, javaAudioTrackFields.nativeTrackInJavaObj); in setAudioTrack()
192 sp<AudioTrack> android_media_AudioTrack_getAudioTrack(JNIEnv* env, jobject audioTrackObj) { in android_media_AudioTrack_getAudioTrack()
[all …]
Dandroid_media_AudioTrack.h26 class AudioTrack; variable
31 extern android::sp<android::AudioTrack> android_media_AudioTrack_getAudioTrack(
/frameworks/av/media/libmedia/
DAudioTrack.cpp116 status_t AudioTrack::getMinFrameCount( in getMinFrameCount()
173 AudioTrack::AudioTrack() in AudioTrack() function in android::AudioTrack
187 AudioTrack::AudioTrack( in AudioTrack() function in android::AudioTrack
218 AudioTrack::AudioTrack( in AudioTrack() function in android::AudioTrack
249 AudioTrack::~AudioTrack() in ~AudioTrack()
277 status_t AudioTrack::set( in set()
548 status_t AudioTrack::start() in start()
645 void AudioTrack::stop() in stop()
682 bool AudioTrack::stopped() const in stopped()
688 void AudioTrack::flush() in flush()
[all …]
/frameworks/av/include/media/
DAudioTrack.h38 class AudioTrack : public RefBase
160 AudioTrack();
224 AudioTrack( audio_stream_type_t streamType,
254 AudioTrack( audio_stream_type_t streamType,
276 virtual ~AudioTrack();
845 AudioTrack(const AudioTrack& other);
846 AudioTrack& operator = (const AudioTrack& other);
852 AudioTrackThread(AudioTrack& receiver, bool bCanCallJava = false);
866 friend class AudioTrack; variable
868 AudioTrack& mReceiver;
[all …]
DIAudioTrack.h37 DECLARE_META_INTERFACE(AudioTrack);
DJetPlayer.h92 sp<AudioTrack> mAudioTrack; // and we play it in this audio track
/frameworks/av/media/libmedia/docs/
Dpaused.dot13 ATstop [label="AudioTrack::stop()"];
16 ATpause [label="AudioTrack::pause()"];
19 ATstart [label="AudioTrack::start()"];
20 destructor [label="~AudioTrack()"];
25 ATsetMarkerPosition [label="AudioTrack::setMarkerPosition()\n[sets marker variables]"];
28 ATsetPositionUpdatePeriod [label="AudioTrack::setPositionUpdatePeriod()\n[sets update period variab…
/frameworks/base/media/java/android/media/
DAudioTrack.java79 public class AudioTrack extends PlayerBase class
363 public AudioTrack(int streamType, int sampleRateInHz, int channelConfig, int audioFormat, in AudioTrack() method in AudioTrack
418 public AudioTrack(int streamType, int sampleRateInHz, int channelConfig, int audioFormat, in AudioTrack() method in AudioTrack
464 public AudioTrack(AudioAttributes attributes, AudioFormat format, int bufferSizeInBytes, in AudioTrack() method in AudioTrack
517 int initResult = native_setup(new WeakReference<AudioTrack>(this), mAttributes, in AudioTrack()
546 /*package*/ AudioTrack(long nativeTrackInJavaObj) { in AudioTrack() method in AudioTrack
576 int initResult = native_setup(new WeakReference<AudioTrack>(this), in deferred_connect()
751 public @NonNull AudioTrack build() throws UnsupportedOperationException { in build()
772 final AudioTrack track = new AudioTrack( in build()
2548 public void onRoutingChanged(AudioTrack audioTrack); in onRoutingChanged()
[all …]
DMediaSync.java22 import android.media.AudioTrack;
200 private AudioTrack mAudioTrack = null;
333 public void setAudioTrack(@Nullable AudioTrack audioTrack) { in setAudioTrack()
341 private native final void native_setAudioTrack(@Nullable AudioTrack audioTrack); in native_setAudioTrack()
539 if (size > 0 && mAudioTrack.getPlayState() != AudioTrack.PLAYSTATE_PLAYING) { in postRenderAudio()
549 AudioTrack.WRITE_NON_BLOCKING); in postRenderAudio()
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()
DAudioTrackRoutingProxy.java22 class AudioTrackRoutingProxy extends AudioTrack {
/frameworks/base/media/jni/soundpool/
DSoundPool.cpp708 sp<AudioTrack> oldTrack; in play()
709 sp<AudioTrack> newTrack; in play()
777 newTrack = new AudioTrack(streamType, sampleRate, sample->format(), in play()
780 AudioTrack::TRANSFER_DEFAULT, in play()
784 newTrack = new AudioTrack(streamType, sampleRate, sample->format(), in play()
786 bufferFrames, AUDIO_SESSION_ALLOCATE, AudioTrack::TRANSFER_DEFAULT, in play()
869 AudioTrack::Buffer* b = NULL; in process()
870 if (event == AudioTrack::EVENT_MORE_DATA) { in process()
871 b = static_cast<AudioTrack::Buffer *>(info); in process()
886 if (event == AudioTrack::EVENT_MORE_DATA) { in process()
[all …]
/frameworks/base/media/jni/
Dandroid_media_MediaSync.h28 class AudioTrack; variable
37 status_t setAudioTrack(const sp<AudioTrack> &audioTrack);
/frameworks/base/media/java/android/media/audiopolicy/
DAudioPolicy.java29 import android.media.AudioTrack;
369 public AudioTrack createAudioTrackSource(AudioMix mix) throws IllegalArgumentException { in createAudioTrackSource()
376 AudioTrack at = new AudioTrack( in createAudioTrackSource()
382 AudioTrack.getMinBufferSize(mix.getFormat().getSampleRate(), in createAudioTrackSource()
384 AudioTrack.MODE_STREAM, in createAudioTrackSource()
/frameworks/av/include/media/stagefright/
DMediaSync.h33 class AudioTrack; variable
83 status_t setAudioTrack(const sp<AudioTrack> &audioTrack);
202 sp<AudioTrack> mAudioTrack;
DAudioPlayer.h29 class AudioTrack; variable
70 sp<AudioTrack> mAudioTrack;
/frameworks/av/cmds/stagefright/
DSimplePlayer.h25 struct AudioTrack;
81 sp<AudioTrack> mAudioTrack;
/frameworks/base/media/tests/audiotests/
Dshared_mem_test.cpp98 sp<AudioTrack> track = new AudioTrack(AUDIO_STREAM_MUSIC,// stream type in Test01()
/frameworks/av/media/libstagefright/
DAudioPlayer.cpp239 mAudioTrack = new AudioTrack( in start()
449 case AudioTrack::EVENT_MORE_DATA: in AudioCallback()
451 AudioTrack::Buffer *buffer = (AudioTrack::Buffer *)info; in AudioCallback()
457 case AudioTrack::EVENT_STREAM_END: in AudioCallback()
/frameworks/base/tests/SoundTriggerTestApp/src/com/android/test/soundtrigger/
DSoundTriggerTestService.java31 import android.media.AudioTrack;
224 public AudioTrack captureAudioTrack;
533 AudioTrack playbackTrack = null; in run()
579 playbackTrack = new AudioTrack(AudioManager.STREAM_MUSIC, in run()
581 bytesRequired, AudioTrack.MODE_STATIC); in run()
/frameworks/wilhelm/src/android/
DAudioPlayer_to_android.cpp1206 case android::AudioTrack::EVENT_MORE_DATA: { in audioTrack_callBack_pullFromBuffQueue()
1211 android::AudioTrack::Buffer* pBuff = (android::AudioTrack::Buffer*)info; in audioTrack_callBack_pullFromBuffQueue()
1301 case android::AudioTrack::EVENT_MARKER: in audioTrack_callBack_pullFromBuffQueue()
1306 case android::AudioTrack::EVENT_NEW_POS: in audioTrack_callBack_pullFromBuffQueue()
1311 case android::AudioTrack::EVENT_UNDERRUN: in audioTrack_callBack_pullFromBuffQueue()
1316 case android::AudioTrack::EVENT_NEW_IAUDIOTRACK: in audioTrack_callBack_pullFromBuffQueue()
1320 case android::AudioTrack::EVENT_BUFFER_END: in audioTrack_callBack_pullFromBuffQueue()
1321 case android::AudioTrack::EVENT_LOOP_END: in audioTrack_callBack_pullFromBuffQueue()
1322 case android::AudioTrack::EVENT_STREAM_END: in audioTrack_callBack_pullFromBuffQueue()
1644 pAudioPlayer->mAudioTrack = new android::AudioTrack( in android_audioPlayer_realize()
/frameworks/av/media/libmediaplayerservice/
DMediaPlayerService.h38 class AudioTrack; variable
140 sp<AudioTrack> mTrack;
141 sp<AudioTrack> mRecycledTrack;
DMediaPlayerService.cpp1767 sp<AudioTrack> t; in open()
1780 t = new AudioTrack( in open()
1791 AudioTrack::TRANSFER_CALLBACK, in open()
1806 t = new AudioTrack( in open()
1817 AudioTrack::TRANSFER_DEFAULT, in open()
2034 sp<AudioTrack> track; in close()
2118 AudioTrack::Buffer *buffer = (AudioTrack::Buffer *)info; in CallbackWrapper()
2130 case AudioTrack::EVENT_MORE_DATA: { in CallbackWrapper()
2149 case AudioTrack::EVENT_STREAM_END: in CallbackWrapper()
2156 case AudioTrack::EVENT_NEW_IAUDIOTRACK : in CallbackWrapper()
[all …]

123