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

1 2 3

  /frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/audio/
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;
64 AudioTrack track = null;
66 track = new AudioTrack(_inTest_streamType, testSampleRates[i], _inTest_config,
67 _inTest_format, AudioTrack.getMinBufferSize(testSampleRates[i],
86 + "AudioTrack(streamType="
95 + AudioTrack.getMinBufferSize(testSampleRates[i], _inTest_config,
105 // AUDIOTRACK TESTS:
109 // AudioTrack constructor and AudioTrack.getMinBufferSize(...) for 16bit PCM
112 // Test case 1: constructor for streaming AudioTrack, mono, 16bit at mis
    [all...]
AudioTrack_ListenerTest.java 22 import android.media.AudioTrack;
23 import android.media.AudioTrack.OnPlaybackPositionUpdateListener;
35 private final int TEST_MODE = AudioTrack.MODE_STREAM;
44 private final int mMinBuffSize = AudioTrack.getMinBufferSize(TEST_SR, TEST_CONF, TEST_FORMAT);
45 private AudioTrack mAudioTrack = new AudioTrack(TEST_STREAM_TYPE1, TEST_SR, TEST_CONF,
67 assertEquals(AudioTrack.SUCCESS, mAudioTrack.setNotificationMarkerPosition(markerInFrames));
69 assertEquals(AudioTrack.SUCCESS, mAudioTrack.setPositionNotificationPeriod(periodInFrames));
94 public void onMarkerReached(AudioTrack track) {
98 public void onPeriodicNotification(AudioTrack track)
    [all...]
  /frameworks/base/core/java/android/speech/tts/
BlockingAudioTrack.java 6 import android.media.AudioTrack;
10 * Exposes parts of the {@link AudioTrack} API by delegating calls to an
11 * underlying {@link AudioTrack}. Additionally, provides methods like
12 * {@link #waitAndRelease()} that will block until all audiotrack
22 * The minimum increment of time to wait for an AudioTrack to finish
28 * The maximum increment of time to sleep while waiting for an AudioTrack
41 * 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
70 private AudioTrack mAudioTrack;
97 AudioTrack track = createStreamingAudioTrack()
    [all...]
  /frameworks/av/include/media/
AudioTrack.h 42 class AudioTrack : virtual public RefBase
51 /* Events used by AudioTrack callback function (audio_track_cblk_t).
95 * event: type of event notified (see enum AudioTrack::event_type).
98 * - EVENT_MORE_DATA: pointer to AudioTrack::Buffer struct. The callback must not write
111 * an AudioTrack object.
121 /* Constructs an uninitialized AudioTrack. No connection with
124 AudioTrack();
140 * latency of the track. The actual size selected by the AudioTrack could be
154 AudioTrack( audio_stream_type_t streamType,
166 explicit AudioTrack( int streamType
    [all...]
JetPlayer.h 24 #include <media/AudioTrack.h>
91 AudioTrack* mAudioTrack; // and we play it in this audio track
IAudioTrack.h 36 DECLARE_META_INTERFACE(AudioTrack);
87 or Tungsten time. The values for target are defined in AudioTrack.h */
ToneGenerator.h 24 #include <media/AudioTrack.h>
173 TONE_STOPPED, // ToneGenerator is stopped: the AudioTrack will be stopped
267 AudioTrack *mpAudioTrack; // Pointer to audio track used for playback
  /external/webkit/Source/WebKit/android/plugins/
ANPSoundInterface.cpp 31 #include "media/AudioTrack.h"
38 android::AudioTrack* mTrack;
67 case android::AudioTrack::EVENT_MORE_DATA: {
69 android::AudioTrack::Buffer* src;
71 src = reinterpret_cast<android::AudioTrack::Buffer*>(info);
81 case android::AudioTrack::EVENT_UNDERRUN:
100 track->mTrack = new android::AudioTrack(AUDIO_STREAM_MUSIC,
  /frameworks/av/media/libmedia/
AudioTrack.cpp 20 #define LOG_TAG "AudioTrack"
32 #include <media/AudioTrack.h>
52 status_t AudioTrack::getMinFrameCount(
89 AudioTrack::AudioTrack()
97 AudioTrack::AudioTrack(
119 AudioTrack::AudioTrack(
139 AudioTrack::AudioTrack
    [all...]
SoundPoolThread.h 22 #include <media/AudioTrack.h>
  /frameworks/base/core/jni/
android_media_AudioTrack.cpp 18 #define LOG_TAG "AudioTrack-JNI"
31 #include <media/AudioTrack.h>
45 static const char* const kClassPathName = "android/media/AudioTrack";
54 jfieldID nativeTrackInJavaObj; // stores in Java the native AudioTrack object
55 jfieldID jniData; // stores in Java additional resources used by the native AudioTrack
86 mMemHeap = new MemoryHeapBase(sizeInBytes, 0, "AudioTrack Heap Base");
138 if (event == AudioTrack::EVENT_MORE_DATA) {
140 AudioTrack::Buffer* pBuff = (AudioTrack::Buffer*)info;
143 } else if (event == AudioTrack::EVENT_MARKER)
    [all...]
  /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
54 * <p>Upon creation, an AudioTrack object initializes its associated audio buffer.
55 * The size of this buffer, specified during the construction, determines how long an AudioTrack
57 * For an AudioTrack using the static mode, this size is the maximum size of the sound that can
62 public class AudioTrack
72 /** indicates AudioTrack state is stopped */
74 /** indicates AudioTrack state is paused *
    [all...]
  /frameworks/av/cmds/stagefright/
SimplePlayer.h 25 struct AudioTrack;
81 sp<AudioTrack> mAudioTrack;
  /frameworks/av/include/media/stagefright/
AudioPlayer.h 29 class AudioTrack;
73 AudioTrack *mAudioTrack;
  /frameworks/base/media/java/android/media/videoeditor/
AudioTrack.java 31 public class AudioTrack {
74 private AudioTrack() throws IOException {
90 public AudioTrack(VideoEditor editor, String audioTrackId, String filename) throws IOException {
123 AudioTrack(VideoEditor editor, String audioTrackId, String filename,
645 if (!(object instanceof AudioTrack)) {
648 return mUniqueId.equals(((AudioTrack)object).mUniqueId);
VideoEditor.java 153 * processing a media object such as a Transition, AudioTrack & Kenburns
157 * or AudioTrack
596 * Add the specified AudioTrack to the storyboard. Note: Specific
600 * @param audioTrack The AudioTrack to add
607 public void addAudioTrack(AudioTrack audioTrack);
614 * @param audioTrack The audio track object to insert
626 public void insertAudioTrack(AudioTrack audioTrack, String afterAudioTrackId)
    [all...]
  /packages/apps/VideoEditor/src/com/android/videoeditor/service/
MovieAudioTrack.java 21 import android.media.videoeditor.AudioTrack;
66 this((AudioTrack)null);
72 * @param audioTrack The audio track
74 MovieAudioTrack(AudioTrack audioTrack) {
75 mUniqueId = audioTrack.getId();
76 mFilename = audioTrack.getFilename();
78 mAppStartTimeMs = mStartTimeMs = audioTrack.getStartTime();
79 mDurationMs = audioTrack.getDuration();
80 mBeginBoundaryTimeMs = audioTrack.getBoundaryBeginTime();
    [all...]
  /external/libvpx/mkvparser/
mkvparser.hpp 412 class AudioTrack : public Track
414 AudioTrack(const AudioTrack&);
415 AudioTrack& operator=(const AudioTrack&);
417 AudioTrack(
427 AudioTrack*&);
785 friend class AudioTrack;
  /frameworks/av/libvideoeditor/lvpp/
VideoEditorAudioPlayer.h 34 class AudioTrack;
94 AudioTrack *mAudioTrack;
VideoEditorPlayer.cpp 437 AudioTrack *t;
439 t = new AudioTrack(
449 t = new AudioTrack(
543 if (event != AudioTrack::EVENT_MORE_DATA) {
548 AudioTrack::Buffer *buffer = (AudioTrack::Buffer *)info;
VideoEditorPlayer.h 21 #include <media/AudioTrack.h>
74 AudioTrack* mTrack;
  /cts/suite/audio_quality/client/src/com/android/cts/audiotest/
AudioProtocol.java 24 import android.media.AudioTrack;
41 public class AudioProtocol implements AudioTrack.OnPlaybackPositionUpdateListener {
76 private AudioTrack mPlayback = null;
113 public void onMarkerReached(AudioTrack track) {
129 public void onPeriodicNotification(AudioTrack arg0) {
207 if (mPlayback.getState() != AudioTrack.STATE_UNINITIALIZED) {
261 int bufferSize = AudioTrack.getMinBufferSize(samplingRate,
271 mPlayback = new AudioTrack(type, samplingRate,
274 AudioTrack.MODE_STREAM);
316 Log.d(TAG, "release AudioTrack");
    [all...]
  /external/quake/quake/src/WinQuake/
snd_android.cpp 505 if (event != AudioTrack::EVENT_MORE_DATA) return;
507 const AudioTrack::Buffer *buffer = static_cast<const AudioTrack::Buffer *>(info);
573 if (event != AudioTrack::EVENT_MORE_DATA) return;
575 const AudioTrack::Buffer *buffer = static_cast<const AudioTrack::Buffer *>(info);
626 // Initialize the AudioTrack.
639 LOGI("AudioTrack status = %d (%s)\n", result, result == NO_ERROR ? "success" : "error");
642 LOGI("AudioTrack latency = %u ms\n", gAudioTrack.latency());
643 LOGI("AudioTrack format = %u bits\n", gAudioTrack.format() == AUDIO_FORMAT_PCM_16_BIT ? 16 : 8)
    [all...]
  /gdk/samples/quake/jni/
snd_android.cpp 505 if (event != AudioTrack::EVENT_MORE_DATA) return;
507 const AudioTrack::Buffer *buffer = static_cast<const AudioTrack::Buffer *>(info);
573 if (event != AudioTrack::EVENT_MORE_DATA) return;
575 const AudioTrack::Buffer *buffer = static_cast<const AudioTrack::Buffer *>(info);
626 // Initialize the AudioTrack.
639 LOGI("AudioTrack status = %d (%s)\n", result, result == NO_ERROR ? "success" : "error");
642 LOGI("AudioTrack latency = %u ms\n", gAudioTrack.latency());
643 LOGI("AudioTrack format = %u bits\n", gAudioTrack.format() == AUDIO_FORMAT_PCM_16_BIT ? 16 : 8)
    [all...]

Completed in 688 milliseconds

1 2 3