HomeSort by relevance Sort by last modified time
    Searched refs:AudioTrack (Results 1 - 25 of 40) sorted by null

1 2

  /frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/
MediaAudioTrackTest.java 24 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],
130 // AUDIOTRACK TESTS:
134 // AudioTrack constructor and AudioTrack.getMinBufferSize(...) for 16bit PC
    [all...]
  /cts/tests/tests/media/src/android/media/cts/
AudioTrackTest.java 21 import android.media.AudioTrack;
29 @TestTargetClass(AudioTrack.class)
69 AudioTrack track = null;
71 track = new AudioTrack(_inTest_streamType, testSampleRates[i], _inTest_config,
72 _inTest_format, AudioTrack.getMinBufferSize(testSampleRates[i],
91 + "AudioTrack(streamType="
100 + AudioTrack.getMinBufferSize(testSampleRates[i], _inTest_config,
110 // AUDIOTRACK TESTS:
114 // AudioTrack constructor and AudioTrack.getMinBufferSize(...) for 16bit PC
    [all...]
AudioTrack_ListenerTest.java 27 import android.media.AudioTrack;
28 import android.media.AudioTrack.OnPlaybackPositionUpdateListener;
33 @TestTargetClass(AudioTrack.class)
41 private final int TEST_MODE = AudioTrack.MODE_STREAM;
50 private final int mMinBuffSize = AudioTrack.getMinBufferSize(TEST_SR, TEST_CONF, TEST_FORMAT);
51 private AudioTrack mAudioTrack = new AudioTrack(TEST_STREAM_TYPE1, TEST_SR, TEST_CONF,
86 "The AudioTrack instance creates its own handler instance internally.")
99 assertEquals(AudioTrack.SUCCESS, mAudioTrack.setNotificationMarkerPosition(markerInFrames));
101 assertEquals(AudioTrack.SUCCESS, mAudioTrack.setPositionNotificationPeriod(periodInFrames))
    [all...]
  /frameworks/base/include/media/
AudioTrack.h 42 class AudioTrack
51 /* Events used by AudioTrack callback function (audio_track_cblk_t).
90 * event: type of event notified (see enum AudioTrack::event_type).
93 * - EVENT_MORE_DATA: pointer to AudioTrack::Buffer struct. The callback must not write
105 /* Constructs an uninitialized AudioTrack. No connection with
108 AudioTrack();
133 AudioTrack( int streamType,
144 * The PCM data to be rendered by AudioTrack is passed in a shared memory buffer
146 * PCM data must be present into memory before the AudioTrack is started.
152 AudioTrack( int streamType
    [all...]
IAudioTrack.h 36 DECLARE_META_INTERFACE(AudioTrack);
JetPlayer.h 25 #include "AudioTrack.h"
93 AudioTrack* mAudioTrack; // and we play it in this audio track
ToneGenerator.h 24 #include <media/AudioTrack.h>
170 TONE_STOPPED, // ToneGenerator is stopped: the AudioTrack will be stopped
264 AudioTrack *mpAudioTrack; // Pointer to audio track used for playback
AudioRecord.h 25 #include <media/AudioTrack.h>
  /external/webkit/WebKit/android/plugins/
ANPSoundInterface.cpp 31 #include "media/AudioTrack.h"
36 android::AudioTrack* mTrack;
65 case android::AudioTrack::EVENT_MORE_DATA: {
67 android::AudioTrack::Buffer* src;
69 src = reinterpret_cast<android::AudioTrack::Buffer*>(info);
79 case android::AudioTrack::EVENT_UNDERRUN:
98 track->mTrack = new android::AudioTrack(android::AudioSystem::MUSIC,
  /frameworks/base/media/libmedia/
AudioTrack.cpp 1 /* //device/extlibs/pv/android/AudioTrack.cpp
20 #define LOG_TAG "AudioTrack"
32 #include <media/AudioTrack.h>
47 AudioTrack::AudioTrack()
52 AudioTrack::AudioTrack(
68 AudioTrack::AudioTrack(
84 AudioTrack::~AudioTrack(
    [all...]
Android.mk 5 AudioTrack.cpp \
IAudioTrack.cpp 103 IMPLEMENT_META_INTERFACE(AudioTrack, "android.media.IAudioTrack");
  /frameworks/base/core/jni/
android_media_AudioTrack.cpp 18 #define LOG_TAG "AudioTrack-JNI"
31 #include "media/AudioTrack.h"
42 static const char* const kClassPathName = "android/media/AudioTrack";
46 jclass audioTrackClass; //... AudioTrack class
60 jfieldID nativeTrackInJavaObj; // stores in Java the native AudioTrack object
61 jfieldID jniData; // stores in Java additional resources used by the native AudioTrack
90 mMemHeap = new MemoryHeapBase(sizeInBytes, 0, "AudioTrack Heap Base");
129 if (event == AudioTrack::EVENT_MORE_DATA) {
131 AudioTrack::Buffer* pBuff = (AudioTrack::Buffer*)info
    [all...]
android_media_AudioSystem.cpp 31 #include <media/AudioTrack.h>
  /frameworks/base/media/java/android/media/
AudioTrack.java 31 * The AudioTrack class manages and plays a single audio resource for Java applications.
33 * achieved by "pushing" the data to the AudioTrack object using one of the
36 * <p>An AudioTrack instance can operate under two modes: static or streaming.<br>
37 * In Streaming mode, the application writes a continuous stream of data to the AudioTrack, using
48 * that need to be played with the smallest latency possible. AudioTrack instances in static mode
53 * <p>Upon creation, an AudioTrack object initializes its associated audio buffer.
54 * The size of this buffer, specified during the construction, determines how long an AudioTrack
56 * For an AudioTrack using the static mode, this size is the maximum size of the sound that can
61 public class AudioTrack
71 /** indicates AudioTrack state is stopped *
    [all...]
JetPlayer.java 104 * Looper associated with the thread that creates the AudioTrack instance
159 int buffSizeInBytes = AudioTrack.getMinBufferSize(JET_OUTPUT_RATE,
162 if ((buffSizeInBytes != AudioTrack.ERROR)
163 && (buffSizeInBytes != AudioTrack.ERROR_BAD_VALUE)) {
476 // no given handler, use the looper the AudioTrack was created in
  /external/quake/quake/src/WinQuake/
snd_android.cpp 14 #include <media/AudioTrack.h>
18 static AudioTrack gAudioTrack;
118 if (event != AudioTrack::EVENT_MORE_DATA) return;
120 const AudioTrack::Buffer *buffer = static_cast<const AudioTrack::Buffer *>(info);
186 if (event != AudioTrack::EVENT_MORE_DATA) return;
188 const AudioTrack::Buffer *buffer = static_cast<const AudioTrack::Buffer *>(info);
239 // Initialize the AudioTrack.
252 LOGI("AudioTrack status = %d (%s)\n", result, result == NO_ERROR ? "success" : "error")
    [all...]
  /frameworks/base/include/media/stagefright/
AudioPlayer.h 29 class AudioTrack;
68 AudioTrack *mAudioTrack;
  /frameworks/base/media/jni/soundpool/
SoundPoolThread.h 22 #include <media/AudioTrack.h>
SoundPool.cpp 27 #include <media/AudioTrack.h>
517 AudioTrack* oldTrack;
557 AudioTrack* newTrack;
560 // The toggle is concatenated with the SoundChannel address and passed to AudioTrack
569 newTrack = new AudioTrack(streamType, sampleRate, sample->format(),
572 newTrack = new AudioTrack(streamType, sampleRate, sample->format(),
576 LOGE("Error creating AudioTrack");
586 // From now on, AudioTrack callbacks recevieved with previous toggle value will be ignored.
659 if (event == AudioTrack::EVENT_MORE_DATA) {
660 AudioTrack::Buffer* b = static_cast<AudioTrack::Buffer *>(info)
    [all...]
SoundPool.h 24 #include <media/AudioTrack.h>
149 AudioTrack* mAudioTrack;
187 // called from AudioTrack thread
  /frameworks/base/media/libstagefright/
AudioPlayer.cpp 22 #include <media/AudioTrack.h>
100 mAudioTrack = new AudioTrack(
218 if (event != AudioTrack::EVENT_MORE_DATA) {
222 AudioTrack::Buffer *buffer = (AudioTrack::Buffer *)info;
  /frameworks/base/media/libmediaplayerservice/
MidiFile.h 22 #include <media/AudioTrack.h>
VorbisPlayer.h 24 #include <media/AudioTrack.h>
  /external/opencore/android/
android_audio_stream.cpp 27 #include <media/AudioTrack.h>

Completed in 727 milliseconds

1 2