/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/audio/ |
D | MediaAudioTrackTest.java | 24 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/ |
D | BlockingAudioTrack.java | 6 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 …]
|
D | SynthesisPlaybackQueueItem.java | 18 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/ |
D | android_media_AudioTrack.cpp | 135 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 …]
|
D | android_media_AudioTrack.h | 26 class AudioTrack; variable 31 extern android::sp<android::AudioTrack> android_media_AudioTrack_getAudioTrack(
|
/frameworks/av/media/libaudioclient/ |
D | AudioTrack.cpp | 107 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/ |
D | track_test_output_v1.0_ref_walleye.txt | 3 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 …]
|
D | test_create_audiotrack.cpp | 42 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/ |
D | AudioTrack.h | 39 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 …]
|
D | TrackPlayerBase.h | 31 void init(AudioTrack* pat, player_type_t playerType, audio_usage_t usage); 40 sp<AudioTrack> mAudioTrack;
|
/frameworks/av/media/libmedia/docs/ |
D | paused.dot | 13 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/ |
D | AudioTrack.java | 82 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 …]
|
D | MediaSync.java | 22 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()
|
D | JetPlayer.java | 168 int buffSizeInBytes = AudioTrack.getMinBufferSize(JET_OUTPUT_RATE, in JetPlayer() 171 if ((buffSizeInBytes != AudioTrack.ERROR) in JetPlayer() 172 && (buffSizeInBytes != AudioTrack.ERROR_BAD_VALUE)) { in JetPlayer()
|
D | AudioTrackRoutingProxy.java | 22 class AudioTrackRoutingProxy extends AudioTrack {
|
/frameworks/av/media/libaaudio/src/legacy/ |
D | AudioStreamTrack.cpp | 106 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()
|
D | README.md | 2 Android AudioTrack and AudioRecord.
|
/frameworks/base/media/jni/soundpool/ |
D | SoundPool.cpp | 726 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/ |
D | android_media_MediaSync.h | 28 class AudioTrack; variable 37 status_t setAudioTrack(const sp<AudioTrack> &audioTrack);
|
/frameworks/base/media/java/android/media/audiopolicy/ |
D | AudioPolicy.java | 33 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/ |
D | MediaSync.h | 33 class AudioTrack; variable 83 status_t setAudioTrack(const sp<AudioTrack> &audioTrack); 202 sp<AudioTrack> mAudioTrack;
|
/frameworks/av/cmds/stagefright/ |
D | SimplePlayer.h | 25 class AudioTrack; variable 82 sp<AudioTrack> mAudioTrack;
|
D | AudioPlayer.h | 29 class AudioTrack; variable 70 sp<AudioTrack> mAudioTrack;
|
D | AudioPlayer.cpp | 247 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/ |
D | shared_mem_test.cpp | 98 sp<AudioTrack> track = new AudioTrack(AUDIO_STREAM_MUSIC,// stream type in Test01()
|