Home
last modified time | relevance | path

Searched refs:AudioTrack (Results 1 – 25 of 64) 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 …]
DSynthesisPlaybackQueueItem.java18 import android.media.AudioTrack;
35 implements AudioTrack.OnPlaybackPositionUpdateListener {
244 public void onMarkerReached(AudioTrack track) { in onMarkerReached()
258 public void onPeriodicNotification(AudioTrack track) {} in onPeriodicNotification()
/frameworks/base/core/jni/
Dandroid_media_AudioTrack.cpp135 case AudioTrack::EVENT_CAN_WRITE_MORE_DATA: in audioCallback()
141 AudioTrack::Buffer* pBuffer = (AudioTrack::Buffer*) info; in audioCallback()
147 case AudioTrack::EVENT_STREAM_END: in audioCallback()
148 case AudioTrack::EVENT_NEW_IAUDIOTRACK: // a.k.a. tear down in audioCallback()
155 case AudioTrack::EVENT_MARKER: in audioCallback()
156 case AudioTrack::EVENT_NEW_POS: in audioCallback()
187 static sp<AudioTrack> getAudioTrack(JNIEnv* env, jobject thiz) in getAudioTrack()
190 AudioTrack* const at = in getAudioTrack()
191 (AudioTrack*)env->GetLongField(thiz, javaAudioTrackFields.nativeTrackInJavaObj); in getAudioTrack()
192 return sp<AudioTrack>(at); in getAudioTrack()
[all …]
Dandroid_media_AudioTrack.h26 class AudioTrack; variable
31 extern android::sp<android::AudioTrack> android_media_AudioTrack_getAudioTrack(
/frameworks/av/media/libaudioclient/
DAudioTrack.cpp107 status_t AudioTrack::getMinFrameCount( in getMinFrameCount()
163 bool AudioTrack::isDirectOutputSupported(const audio_config_base_t& config, in isDirectOutputSupported()
173 void AudioTrack::MediaMetrics::gather(const AudioTrack *track) in gather()
202 status_t AudioTrack::getMetrics(MediaAnalyticsItem * &item) in getMetrics()
213 AudioTrack::AudioTrack() in AudioTrack() function in android::AudioTrack
228 AudioTrack::AudioTrack( in AudioTrack() function in android::AudioTrack
261 AudioTrack::AudioTrack( in AudioTrack() function in android::AudioTrack
294 AudioTrack::~AudioTrack() in ~AudioTrack()
326 status_t AudioTrack::set( in set()
627 status_t AudioTrack::start() in start()
[all …]
/frameworks/av/media/libaudioclient/tests/
Dtrack_test_output_v1.0_ref_walleye.txt3 AudioTrack::dump
14 AudioTrack::dump
25 AudioTrack::dump
36 AudioTrack::dump
47 AudioTrack::dump
58 AudioTrack::dump
69 AudioTrack::dump
80 AudioTrack::dump
91 AudioTrack::dump
102 AudioTrack::dump
[all …]
Dtest_create_audiotrack.cpp42 sp<AudioTrack> track = new AudioTrack(AUDIO_STREAM_DEFAULT, in testTrack()
112 sp<AudioTrack> track = new AudioTrack(); in testTrack()
127 AudioTrack::TRANSFER_CALLBACK : AudioTrack::TRANSFER_DEFAULT, in testTrack()
/frameworks/av/media/libaudioclient/include/media/
DAudioTrack.h39 class AudioTrack : public AudioSystem::AudioDeviceCallback
175 AudioTrack();
241 AudioTrack( audio_stream_type_t streamType,
272 AudioTrack( audio_stream_type_t streamType,
294 virtual ~AudioTrack();
938 AudioTrack(const AudioTrack& other);
939 AudioTrack& operator = (const AudioTrack& other);
945 AudioTrackThread(AudioTrack& receiver);
959 friend class AudioTrack; variable
961 AudioTrack& mReceiver;
[all …]
DTrackPlayerBase.h31 void init(AudioTrack* pat, player_type_t playerType, audio_usage_t usage);
40 sp<AudioTrack> mAudioTrack;
/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.java82 public class AudioTrack extends PlayerBase class
487 public AudioTrack(int streamType, int sampleRateInHz, int channelConfig, int audioFormat, in AudioTrack() method in AudioTrack
545 public AudioTrack(int streamType, int sampleRateInHz, int channelConfig, int audioFormat, in AudioTrack() method in AudioTrack
592 public AudioTrack(AudioAttributes attributes, AudioFormat format, int bufferSizeInBytes, in AudioTrack() method in AudioTrack
598 private AudioTrack(AudioAttributes attributes, AudioFormat format, int bufferSizeInBytes, in AudioTrack() method in AudioTrack
663 int initResult = native_setup(new WeakReference<AudioTrack>(this), mAttributes, in AudioTrack()
705 /*package*/ AudioTrack(long nativeTrackInJavaObj) { in AudioTrack() method in AudioTrack
738 int initResult = native_setup(new WeakReference<AudioTrack>(this), in deferred_connect()
959 public @NonNull AudioTrack build() throws UnsupportedOperationException { in build()
1014 final AudioTrack track = new AudioTrack( in build()
[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.java168 int buffSizeInBytes = AudioTrack.getMinBufferSize(JET_OUTPUT_RATE, in JetPlayer()
171 if ((buffSizeInBytes != AudioTrack.ERROR) in JetPlayer()
172 && (buffSizeInBytes != AudioTrack.ERROR_BAD_VALUE)) { in JetPlayer()
DAudioTrackRoutingProxy.java22 class AudioTrackRoutingProxy extends AudioTrack {
/frameworks/av/media/libaaudio/src/legacy/
DAudioStreamTrack.cpp106 AudioTrack::callback_t callback = nullptr; in open()
109 AudioTrack::transfer_type streamTransferType = AudioTrack::transfer_type::TRANSFER_SYNC; in open()
111 streamTransferType = AudioTrack::transfer_type::TRANSFER_CALLBACK; in open()
150 mAudioTrack = new AudioTrack(); in open()
255 case AudioTrack::EVENT_MORE_DATA: in processCallback()
260 case AudioTrack::EVENT_NEW_IAUDIOTRACK: in processCallback()
DREADME.md2 Android AudioTrack and AudioRecord.
/frameworks/base/media/jni/soundpool/
DSoundPool.cpp726 sp<AudioTrack> oldTrack; in play()
727 sp<AudioTrack> newTrack; in play()
800 newTrack = new AudioTrack(streamType, sampleRate, sample->format(), in play()
803 AudioTrack::TRANSFER_DEFAULT, in play()
807 newTrack = new AudioTrack(streamType, sampleRate, sample->format(), in play()
809 bufferFrames, AUDIO_SESSION_ALLOCATE, AudioTrack::TRANSFER_DEFAULT, in play()
896 AudioTrack::Buffer* b = NULL; in process()
897 if (event == AudioTrack::EVENT_MORE_DATA) { in process()
898 b = static_cast<AudioTrack::Buffer *>(info); in process()
913 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.java33 import android.media.AudioTrack;
87 @Nullable private ArrayList<WeakReference<AudioTrack>> mInjectors;
681 public AudioTrack createAudioTrackSource(AudioMix mix) throws IllegalArgumentException { in createAudioTrackSource()
688 AudioTrack at = new AudioTrack( in createAudioTrackSource()
694 AudioTrack.getMinBufferSize(mix.getFormat().getSampleRate(), in createAudioTrackSource()
696 AudioTrack.MODE_STREAM, in createAudioTrackSource()
703 mInjectors.add(new WeakReference<AudioTrack>(at)); in createAudioTrackSource()
717 for (final WeakReference<AudioTrack> weakTrack : mInjectors) { in invalidateCaptorsAndInjectors()
718 final AudioTrack track = weakTrack.get(); in invalidateCaptorsAndInjectors()
/frameworks/av/media/libstagefright/include/media/stagefright/
DMediaSync.h33 class AudioTrack; variable
83 status_t setAudioTrack(const sp<AudioTrack> &audioTrack);
202 sp<AudioTrack> mAudioTrack;
/frameworks/av/cmds/stagefright/
DSimplePlayer.h25 class AudioTrack; variable
82 sp<AudioTrack> mAudioTrack;
DAudioPlayer.h29 class AudioTrack; variable
70 sp<AudioTrack> mAudioTrack;
DAudioPlayer.cpp247 mAudioTrack = new AudioTrack( in start()
457 case AudioTrack::EVENT_MORE_DATA: in AudioCallback()
459 AudioTrack::Buffer *buffer = (AudioTrack::Buffer *)info; in AudioCallback()
465 case AudioTrack::EVENT_STREAM_END: in AudioCallback()
/frameworks/base/media/tests/audiotests/
Dshared_mem_test.cpp98 sp<AudioTrack> track = new AudioTrack(AUDIO_STREAM_MUSIC,// stream type in Test01()

123