Searched refs:AudioTrack (Results 26 - 50 of 57) sorted by path

123

/frameworks/av/media/libstagefright/foundation/include/
H A DMediaSync.h33 class AudioTrack;
83 status_t setAudioTrack(const sp<AudioTrack> &audioTrack);
93 // after the client write audio data into AudioTrack.
202 sp<AudioTrack> mAudioTrack;
/frameworks/av/media/libstagefright/include/
H A DAudioPlayer.h29 class AudioTrack;
70 sp<AudioTrack> mAudioTrack;
H A DMediaSync.h33 class AudioTrack;
83 status_t setAudioTrack(const sp<AudioTrack> &audioTrack);
93 // after the client write audio data into AudioTrack.
202 sp<AudioTrack> mAudioTrack;
/frameworks/av/media/libstagefright/matroska/
H A DMatroskaExtractor.cpp1344 const mkvparser::AudioTrack *atrack =
1345 static_cast<const mkvparser::AudioTrack *>(track);
/frameworks/av/services/audioflinger/
H A DAudioFlinger.h36 #include <media/AudioTrack.h>
/frameworks/av/services/mediaanalytics/
H A DMediaAnalyticsService.cpp58 #include <media/AudioTrack.h>
/frameworks/base/
H A Dcompiled-classes-phone2470 android.media.AudioTrack
/frameworks/base/core/java/android/speech/tts/
H A DBlockingAudioTrack.java6 import android.media.AudioTrack;
11 * Exposes parts of the {@link AudioTrack} API by delegating calls to an
12 * underlying {@link AudioTrack}. Additionally, provides methods like
23 * The minimum increment of time to wait for an AudioTrack to finish
29 * The maximum increment of time to sleep while waiting for an AudioTrack
42 * Minimum size of the buffer of the underlying {@link android.media.AudioTrack}
58 * {@link AudioTrack#stop()} to send pending buffers to the mixer, and slightly
73 private AudioTrack mAudioTrack;
95 AudioTrack track = createStreamingAudioTrack();
117 AudioTrack trac
[all...]
H A DSynthesisPlaybackQueueItem.java20 import android.media.AudioTrack;
34 implements AudioTrack.OnPlaybackPositionUpdateListener {
220 public void onMarkerReached(AudioTrack track) {
234 public void onPeriodicNotification(AudioTrack track) {}
/frameworks/base/core/jni/
H A Dandroid_media_AudioTrack.cpp18 #define LOG_TAG "AudioTrack-JNI"
30 #include <media/AudioTrack.h>
49 static const char* const kClassPathName = "android/media/AudioTrack";
55 jfieldID nativeTrackInJavaObj; // stores in Java the native AudioTrack object
56 jfieldID jniData; // stores in Java additional resources used by the native AudioTrack
57 jfieldID fieldStreamType; // ... mStreamType field in the AudioTrack Java object
77 // keep these values in sync with AudioTrack.java
100 mMemHeap = new MemoryHeapBase(sizeInBytes, 0, "AudioTrack Heap Base");
134 case AudioTrack::EVENT_MARKER: {
148 case AudioTrack
[all...]
H A Dandroid_media_AudioTrack.h26 class AudioTrack;
30 /* Gets the underlying AudioTrack from an AudioTrack Java object. */
31 extern android::sp<android::AudioTrack> android_media_AudioTrack_getAudioTrack(
/frameworks/base/media/java/android/media/
H A DAudioTrack.java46 * The AudioTrack class manages and plays a single audio resource for Java applications.
48 * achieved by "pushing" the data to the AudioTrack object using one of the
52 * <p>An AudioTrack instance can operate under two modes: static or streaming.<br>
53 * In Streaming mode, the application writes a continuous stream of data to the AudioTrack, using
70 * <p>Upon creation, an AudioTrack object initializes its associated audio buffer.
71 * The size of this buffer, specified during the construction, determines how long an AudioTrack
73 * For an AudioTrack using the static mode, this size is the maximum size of the sound that can
78 * AudioTrack is not final and thus permits subclasses, but such use is not recommended.
80 public class AudioTrack extends PlayerBase class in inherits:PlayerBase,AudioRouting,VolumeAutomation
96 /** Maximum value for AudioTrack channe
428 public AudioTrack(int streamType, int sampleRateInHz, int channelConfig, int audioFormat, method in class:AudioTrack
486 public AudioTrack(int streamType, int sampleRateInHz, int channelConfig, int audioFormat, method in class:AudioTrack
533 public AudioTrack(AudioAttributes attributes, AudioFormat format, int bufferSizeInBytes, method in class:AudioTrack
626 /*package*/ AudioTrack(long nativeTrackInJavaObj) { method in class:AudioTrack
[all...]
H A DAudioTrackRoutingProxy.java20 * An AudioTrack connected to a native (C/C++) which allows access only to routing methods.
22 class AudioTrackRoutingProxy extends AudioTrack {
24 * A constructor which explicitly connects a Native (C++) AudioTrack. For use by
26 * @param nativeTrackInJavaObj a C/C++ pointer to a native AudioTrack
H A DJetPlayer.java109 * Looper associated with the thread that creates the AudioTrack instance
164 int buffSizeInBytes = AudioTrack.getMinBufferSize(JET_OUTPUT_RATE,
167 if ((buffSizeInBytes != AudioTrack.ERROR)
168 && (buffSizeInBytes != AudioTrack.ERROR_BAD_VALUE)) {
483 // no given handler, use the looper the AudioTrack was created in
H A DMediaCodecInfo.java1108 maxChannels = AudioTrack.CHANNEL_COUNT_MAX;
H A DMediaSync.java22 import android.media.AudioTrack;
100 * The client needs to configure corresponding sink by setting the Surface and/or AudioTrack
107 * AudioTrack#MODE_STREAM}. The audio buffers are sent to MediaSync directly via {@link
200 private AudioTrack mAudioTrack = null;
328 * @param audioTrack Specify an AudioTrack through which to render the audio data.
333 public void setAudioTrack(@Nullable AudioTrack audioTrack) {
341 private native final void native_setAudioTrack(@Nullable AudioTrack audioTrack);
358 * When using MediaSync with {@link AudioTrack}, set playback params using this
495 * Queues the audio data asynchronously for playback (AudioTrack must be in streaming mode).
511 "AudioTrack i
[all...]
/frameworks/base/media/java/android/media/audiofx/
H A DLoudnessEnhancer.java19 import android.media.AudioTrack;
34 * To attach the LoudnessEnhancer to a particular AudioTrack or MediaPlayer,
35 * specify the audio session ID of this AudioTrack or MediaPlayer when constructing the effect
36 * (see {@link AudioTrack#getAudioSessionId()} and {@link MediaPlayer#getAudioSessionId()}).
70 * will be attached to the MediaPlayer or AudioTrack in the same audio session.
96 * will be attached to the MediaPlayer or AudioTrack in the same audio session.
/frameworks/base/media/java/android/media/audiopolicy/
H A DAudioPolicy.java29 import android.media.AudioTrack;
276 String msg = forTrack ? "Invalid null AudioMix for AudioTrack creation"
368 checkMixReadyToUse(mix, false/*not for an AudioTrack*/);
391 * Create an {@link AudioTrack} instance that is associated with the given {@link AudioMix}.
396 * @return a new {@link AudioTrack} instance whose data format is the one defined in the
402 public AudioTrack createAudioTrackSource(AudioMix mix) throws IllegalArgumentException {
404 Log.e(TAG, "Cannot create AudioTrack source for AudioMix");
407 checkMixReadyToUse(mix, true/*for an AudioTrack*/);
408 // create the AudioTrack, configured for loop back, using the same format as the mix
409 AudioTrack a
[all...]
/frameworks/base/media/jni/
H A Dandroid_media_MediaSync.cpp34 #include <media/AudioTrack.h>
68 status_t JMediaSync::setAudioTrack(const sp<AudioTrack> &audioTrack) {
213 sp<AudioTrack> audioTrack;
523 "(Landroid/media/AudioTrack;)V",
H A Dandroid_media_MediaSync.h28 class AudioTrack;
37 status_t setAudioTrack(const sp<AudioTrack> &audioTrack);
/frameworks/base/media/jni/soundpool/
H A DSoundPool.cpp26 #include <media/AudioTrack.h>
722 sp<AudioTrack> oldTrack;
723 sp<AudioTrack> newTrack;
781 // The toggle is concatenated with the SoundChannel address and passed to AudioTrack
791 newTrack = new AudioTrack(streamType, sampleRate, sample->format(),
794 AudioTrack::TRANSFER_DEFAULT,
798 newTrack = new AudioTrack(streamType, sampleRate, sample->format(),
800 bufferFrames, AUDIO_SESSION_ALLOCATE, AudioTrack::TRANSFER_DEFAULT,
806 ALOGE("Error creating AudioTrack");
810 // From now on, AudioTrack callback
[all...]
H A DSoundPool.h24 #include <media/AudioTrack.h>
148 sp<AudioTrack> mAudioTrack;
188 // called from AudioTrack thread
H A DSoundPoolThread.h22 #include <media/AudioTrack.h>
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/audio/
H A DMediaAudioEffectTest.java25 import android.media.AudioTrack;
44 * Junit / Instrumentation test case for the media AudioTrack api
393 //Test case 1.7: test auxiliary effect attachement on AudioTrack
400 AudioTrack track = new AudioTrack(
405 AudioTrack.getMinBufferSize(44100,
408 AudioTrack.MODE_STREAM);
409 assertNotNull(msg + ": could not create AudioTrack", track);
H A DMediaAudioTrackTest.java24 import android.media.AudioTrack;
32 * Junit / Instrumentation test case for the media AudioTrack api
87 AudioTrack track = null;
89 track = new AudioTrack(
94 AudioTrack.getMinBufferSize(testSampleRates[i],
115 +"AudioTrack(streamType="+_inTest_streamType
119 +", bufferSizeInBytes=" + AudioTrack.getMinBufferSize(testSampleRates[i],
134 // AudioTrack constructor and AudioTrack.getMinBufferSize(...) for 16bit PCM
137 //Test case 1: constructor for streaming AudioTrack, mon
[all...]

Completed in 426 milliseconds

123