Home
last modified time | relevance | path

Searched refs:AudioTrack (Results 1 – 25 of 71) 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/java/android/companion/virtual/audio/
DAudioInjection.java19 import static android.media.AudioTrack.PLAYSTATE_PLAYING;
20 import static android.media.AudioTrack.PLAYSTATE_STOPPED;
21 import static android.media.AudioTrack.STATE_INITIALIZED;
22 import static android.media.AudioTrack.WRITE_BLOCKING;
29 import android.media.AudioTrack;
53 private AudioTrack mAudioTrack;
75 void setAudioTrack(@Nullable AudioTrack audioTrack) { in setAudioTrack()
127 @AudioTrack.WriteMode int writeMode) { in write()
154 @AudioTrack.WriteMode int writeMode, long timestamp) { in write()
168 @AudioTrack.WriteMode int writeMode) { in write()
[all …]
/frameworks/av/media/libaudioclient/
DAudioTrack.cpp113 status_t AudioTrack::getMinFrameCount( in getMinFrameCount()
169 bool AudioTrack::isDirectOutputSupported(const audio_config_base_t& config, in isDirectOutputSupported()
190 void AudioTrack::MediaMetrics::gather(const AudioTrack *track) in gather()
222 status_t AudioTrack::getMetrics(mediametrics::Item * &item) in getMetrics()
233 AudioTrack::AudioTrack() : AudioTrack(AttributionSourceState()) in AudioTrack() function in android::AudioTrack
237 AudioTrack::AudioTrack(const AttributionSourceState& attributionSource) in AudioTrack() function in android::AudioTrack
254 AudioTrack::AudioTrack( in AudioTrack() function in android::AudioTrack
289 class LegacyCallbackWrapper : public AudioTrack::IAudioTrackCallback {
290 const AudioTrack::legacy_callback_t mCallback;
293 LegacyCallbackWrapper(AudioTrack::legacy_callback_t callback, void* user) in LegacyCallbackWrapper()
[all …]
/frameworks/base/core/jni/
Dandroid_media_AudioTrack.cpp67 class AudioTrackCallbackImpl : public AudioTrack::IAudioTrackCallback {
101 size_t onCanWriteMoreData(const AudioTrack::Buffer& buffer) override { in onCanWriteMoreData()
232 sp<AudioTrack> getAudioTrack(JNIEnv* env, jobject thiz) { in getAudioTrack()
233 return getFieldSp<AudioTrack>(env, thiz, javaAudioTrackFields.nativeTrackInJavaObj); in getAudioTrack()
239 sp<AudioTrack> android_media_AudioTrack_getAudioTrack(JNIEnv* env, jobject audioTrackObj) { in android_media_AudioTrack_getAudioTrack()
280 sp<AudioTrack> lpTrack; in android_media_AudioTrack_setup()
330 lpTrack = sp<AudioTrack>::make(attributionSource); in android_media_AudioTrack_setup()
382 offload ? AudioTrack::TRANSFER_SYNC_NOTIF_CALLBACK in android_media_AudioTrack_setup()
383 : AudioTrack::TRANSFER_SYNC, in android_media_AudioTrack_setup()
409 AudioTrack::TRANSFER_SHARED, in android_media_AudioTrack_setup()
[all …]
/frameworks/av/media/libaudioclient/tests/
Dtest_create_audiotrack.cpp43 sp<AudioTrack> track = new AudioTrack(AUDIO_STREAM_DEFAULT, in testTrack()
112 sp<AudioTrack> track = new AudioTrack(); in testTrack()
113 const auto emptyCallback = sp<AudioTrack::IAudioTrackCallback>::make(); in testTrack()
126 AudioTrack::TRANSFER_CALLBACK : AudioTrack::TRANSFER_DEFAULT, in testTrack()
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 …]
/frameworks/av/media/libaudioclient/include/media/
DAudioTrack.h50 class AudioTrack : public AudioSystem::AudioDeviceCallback
98 friend AudioTrack; variable
153 friend AudioTrack; variable
168 virtual size_t onMoreData([[maybe_unused]] const AudioTrack::Buffer& buffer) { return 0; } in onMoreData()
220 virtual size_t onCanWriteMoreData([[maybe_unused]] const AudioTrack::Buffer& buffer) { in onCanWriteMoreData()
260 AudioTrack();
262 AudioTrack(const AttributionSourceState& attributionSourceState);
328 AudioTrack( audio_stream_type_t streamType,
347 AudioTrack( audio_stream_type_t streamType,
377 AudioTrack( audio_stream_type_t streamType,
[all …]
DTrackPlayerBase.h31 void init(const sp<AudioTrack>& pat, const sp<AudioTrack::IAudioTrackCallback>& callback,
41 sp<AudioTrack> mAudioTrack;
69 sp<AudioTrack::IAudioTrackCallback> mCallbackHandle;
DToneGenerator.h31 class ToneGenerator : public AudioTrack::IAudioTrackCallback {
312 sp<AudioTrack> mpAudioTrack; // Pointer to audio track used for playback
321 size_t onMoreData(const AudioTrack::Buffer& buffer) override;
/frameworks/base/media/java/android/media/
DAudioDevicePort.java50 @AudioTrack.EncapsulationMetadataType int[] encapsulationMetadataTypes) { in AudioDevicePort()
63 @AudioTrack.EncapsulationMetadataType int[] encapsulationMetadataTypes, in AudioDevicePort()
103 public @NonNull @AudioTrack.EncapsulationMode int[] encapsulationModes() { in encapsulationModes()
108 .filter(mode -> mode != AudioTrack.ENCAPSULATION_MODE_HANDLE) in encapsulationModes()
115 public @NonNull @AudioTrack.EncapsulationMetadataType int[] encapsulationMetadataTypes() { in encapsulationMetadataTypes()
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()
DAudioTrack.java91 public class AudioTrack extends PlayerBase class
644 public AudioTrack(int streamType, int sampleRateInHz, int channelConfig, int audioFormat, in AudioTrack() method in AudioTrack
702 public AudioTrack(int streamType, int sampleRateInHz, int channelConfig, int audioFormat, in AudioTrack() method in AudioTrack
749 public AudioTrack(AudioAttributes attributes, AudioFormat format, int bufferSizeInBytes, in AudioTrack() method in AudioTrack
756 private AudioTrack(AudioAttributes attributes, AudioFormat format, int bufferSizeInBytes, in AudioTrack() method in AudioTrack
822 int initResult = native_setup(new WeakReference<AudioTrack>(this), mAttributes, in AudioTrack()
868 /*package*/ AudioTrack(long nativeTrackInJavaObj) { in AudioTrack() method in AudioTrack
901 int initResult = native_setup(new WeakReference<AudioTrack>(this), in deferred_connect()
1277 private @NonNull AudioTrack buildCallInjectionTrack() { in buildCallInjectionTrack()
1295 AudioTrack track = audioPolicy.createAudioTrackSource(audioMix); in buildCallInjectionTrack()
[all …]
/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/wilhelm/src/android/
DAudioTrackCallback.h31 const android::AudioTrack::Buffer& buffer);
34 class AudioTrackCallback : public AudioTrack::IAudioTrackCallback {
38 size_t onMoreData(const AudioTrack::Buffer& buffer) override { in onMoreData()
88 size_t onCanWriteMoreData([[maybe_unused]] const AudioTrack::Buffer& buffer) { in onCanWriteMoreData()
/frameworks/av/cmds/stagefright/
DAudioPlayer.h32 class AudioPlayer : AudioTrack::IAudioTrackCallback {
70 size_t onMoreData(const AudioTrack::Buffer& buffer) override;
73 sp<AudioTrack> mAudioTrack;
DSimplePlayer.h25 class AudioTrack; variable
82 sp<AudioTrack> mAudioTrack;
/frameworks/base/media/jni/soundpool/
DStream.h132 class StreamCallback : public AudioTrack::IAudioTrackCallback {
135 size_t onMoreData(const AudioTrack::Buffer& buffer) override;
143 size_t onCanWriteMoreData(const AudioTrack::Buffer& buffer) override;
184 sp<AudioTrack> mAudioTrack GUARDED_BY(mLock);
/frameworks/base/media/jni/
Dandroid_media_MediaSync.h28 class AudioTrack; variable
37 status_t setAudioTrack(const sp<AudioTrack> &audioTrack);
/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/base/media/java/android/media/audiopolicy/
DAudioPolicy.java35 import android.media.AudioTrack;
89 @Nullable private ArrayList<WeakReference<AudioTrack>> mInjectors;
824 public AudioTrack createAudioTrackSource(AudioMix mix) throws IllegalArgumentException { in createAudioTrackSource()
837 AudioTrack at = new AudioTrack(ab.build(), in createAudioTrackSource()
839 AudioTrack.getMinBufferSize(mix.getFormat().getSampleRate(), in createAudioTrackSource()
841 AudioTrack.MODE_STREAM, in createAudioTrackSource()
848 mInjectors.add(new WeakReference<AudioTrack>(at)); in createAudioTrackSource()
862 for (final WeakReference<AudioTrack> weakTrack : mInjectors) { in invalidateCaptorsAndInjectors()
863 final AudioTrack track = weakTrack.get(); in invalidateCaptorsAndInjectors()
/frameworks/av/media/libaaudio/src/legacy/
DAudioStreamTrack.cpp106 wp<AudioTrack::IAudioTrackCallback> callback; in open()
108 AudioTrack::transfer_type streamTransferType = AudioTrack::transfer_type::TRANSFER_SYNC; in open()
110 streamTransferType = AudioTrack::transfer_type::TRANSFER_CALLBACK; in open()
111 callback = wp<AudioTrack::IAudioTrackCallback>::fromExisting(this); in open()
148 mAudioTrack = new AudioTrack(); in open()
DAudioStreamLegacy.h61 protected android::AudioTrack::IAudioTrackCallback,
86 size_t onMoreData(const android::AudioTrack::Buffer& buffer) override;
/frameworks/base/media/tests/audiotests/
Dshared_mem_test.cpp98 sp<AudioTrack> track = new AudioTrack(AUDIO_STREAM_MUSIC,// stream type in Test01()

123