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

1 2

  /packages/apps/TV/usbtuner/src/com/android/usbtuner/exoplayer/ac3/
AudioTrackWrapper.java 31 private final AudioTrack mAudioTrack = new AudioTrack();
47 return mAudioTrack.isInitialized();
51 if (mAudioTrack.isInitialized()) {
52 mAudioTrack.release();
60 mAudioTrack.release();
69 mAudioTrack.initialize(mAudioSessionID);
71 mAudioSessionID = mAudioTrack.initialize();
79 mAudioTrack.reset();
86 return !mAudioTrack.hasPendingData();
91 return !mIsEnabled || mAudioTrack.hasPendingData()
    [all...]
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
TrivialPlayer.java 28 AudioTrack mAudioTrack;
44 mAudioTrack =
67 public AudioTrack getAudioTrack() { return mAudioTrack; }
94 mAudioTrack.release();
99 mAudioTrack.play();
103 while (mAudioTrack != null && mPlay) {
104 mAudioTrack.write(mAudioData, 0, mBufferSize);
109 mAudioTrack.stop();
SoundPlayerObject.java 41 public AudioTrack mAudioTrack;
76 mAudioTrack.write(mAudioShortArray, 0, valuesOfInterest);
137 mAudioTrack = new AudioTrack(mStreamType,
160 if (mAudioTrack != null) {
161 result = mAudioTrack.getPlayState() == AudioTrack.PLAYSTATE_PLAYING;
177 if (mAudioTrack != null && isInitialized) {
180 mAudioTrack.flush();
181 mAudioTrack.play();
183 mAudioTrack.pause();
201 if (mAudioTrack != null)
    [all...]
  /developers/build/prebuilts/gradle/MidiScope/Application/src/main/java/com/example/android/common/midi/synth/
SimpleAudioOutput.java 34 private AudioTrack mAudioTrack;
52 mAudioTrack = createAudioTrack(frameRate);
54 mAudioTrack.play();
77 return mAudioTrack.write(buffer, offset, length,
82 if (mAudioTrack != null) {
83 mAudioTrack.stop();
84 mAudioTrack = null;
93 return mAudioTrack;
  /developers/build/prebuilts/gradle/MidiSynth/Application/src/main/java/com/example/android/common/midi/synth/
SimpleAudioOutput.java 34 private AudioTrack mAudioTrack;
52 mAudioTrack = createAudioTrack(frameRate);
54 mAudioTrack.play();
77 return mAudioTrack.write(buffer, offset, length,
82 if (mAudioTrack != null) {
83 mAudioTrack.stop();
84 mAudioTrack = null;
93 return mAudioTrack;
  /developers/samples/android/common/src/java/com/example/android/common/midi/synth/
SimpleAudioOutput.java 34 private AudioTrack mAudioTrack;
52 mAudioTrack = createAudioTrack(frameRate);
54 mAudioTrack.play();
77 return mAudioTrack.write(buffer, offset, length,
82 if (mAudioTrack != null) {
83 mAudioTrack.stop();
84 mAudioTrack = null;
93 return mAudioTrack;
  /development/samples/browseable/MidiScope/src/com.example.android.common.midi/synth/
SimpleAudioOutput.java 34 private AudioTrack mAudioTrack;
52 mAudioTrack = createAudioTrack(frameRate);
54 mAudioTrack.play();
77 return mAudioTrack.write(buffer, offset, length,
82 if (mAudioTrack != null) {
83 mAudioTrack.stop();
84 mAudioTrack = null;
93 return mAudioTrack;
  /development/samples/browseable/MidiSynth/src/com.example.android.common.midi/synth/
SimpleAudioOutput.java 34 private AudioTrack mAudioTrack;
52 mAudioTrack = createAudioTrack(frameRate);
54 mAudioTrack.play();
77 return mAudioTrack.write(buffer, offset, length,
82 if (mAudioTrack != null) {
83 mAudioTrack.stop();
84 mAudioTrack = null;
93 return mAudioTrack;
  /cts/tests/tests/media/src/android/media/cts/
NonBlockingAudioTrack.java 42 private AudioTrack mAudioTrack;
74 mAudioTrack = new AudioTrack(
93 mAudioTrack = new AudioTrack(audioAttributes, audioFormat, bufferSize,
101 int numFramesPlayed = mAudioTrack.getPlaybackHeadPosition();
112 mAudioTrack.play();
117 mAudioTrack.stop();
125 mAudioTrack.pause();
129 if (mAudioTrack.getPlayState() == AudioTrack.PLAYSTATE_PLAYING) {
132 mAudioTrack.flush();
141 mAudioTrack.release()
    [all...]
CodecState.java 52 private NonBlockingAudioTrack mAudioTrack;
106 if (mAudioTrack != null) {
107 mAudioTrack.release();
108 mAudioTrack = null;
119 if (mAudioTrack != null) {
120 mAudioTrack.play();
125 if (mAudioTrack != null) {
126 mAudioTrack.pause();
144 if (mAudioTrack != null
145 && mAudioTrack.getPlayState() != AudioTrack.PLAYSTATE_PLAYING)
    [all...]
AudioTrack_ListenerTest.java 231 mAudioTrack = track;
236 mAudioTrack = track;
242 int position = mAudioTrack.getPlaybackHeadPosition();
247 mAudioTrack.setNotificationMarkerPosition(mMarkerPosition));
256 mOnPeriodicNotificationCalled.add(mAudioTrack.getPlaybackHeadPosition());
275 mAudioTrack.setPlaybackPositionUpdateListener(null);
276 mAudioTrack = null;
280 private AudioTrack mAudioTrack;
RoutingTest.java 324 AudioTrack mAudioTrack;
332 mAudioTrack = audioTrack;
348 while (mAudioTrack != null && mPlaying) {
349 mAudioTrack.write(mAudioData, 0, mBufferSize);
  /frameworks/base/core/java/android/speech/tts/
SynthesisPlaybackQueueItem.java 63 private final BlockingAudioTrack mAudioTrack;
77 mAudioTrack = new BlockingAudioTrack(audioParams, sampleRate, audioFormat, channelCount);
87 if (!mAudioTrack.init()) {
102 mAudioTrack.write(buffer);
110 mAudioTrack.waitAndRelease();
150 mAudioTrack.stop();
181 while ((unconsumedAudioMs = mAudioTrack.getAudioLengthMs(mUnconsumedBytes)) >
BlockingAudioTrack.java 70 // Need to be seen by stop() which can be called from another thread. mAudioTrack will be
73 private AudioTrack mAudioTrack;
90 mAudioTrack = null;
97 mAudioTrack = track;
109 if (mAudioTrack != null) {
110 mAudioTrack.stop();
119 track = mAudioTrack;
134 track = mAudioTrack;
159 if (DBG) Log.d(TAG, "Waiting for audio track to complete : " + mAudioTrack.hashCode());
160 blockUntilDone(mAudioTrack);
    [all...]
  /frameworks/av/media/libstagefright/
AudioPlayer.cpp 239 mAudioTrack = new AudioTrack(
244 if ((err = mAudioTrack->initCheck()) != OK) {
245 mAudioTrack.clear();
259 mLatencyUs = (int64_t)mAudioTrack->latency() * 1000;
260 mFrameSize = mAudioTrack->frameSize();
262 mAudioTrack->start();
278 mAudioTrack->stop();
287 mAudioTrack->pause();
301 err = mAudioTrack->start();
334 mAudioTrack->stop()
    [all...]
MediaSync.cpp 152 if (mAudioTrack != NULL) {
174 mAudioTrack = audioTrack;
179 mAudioTrack = NULL;
233 if (mAudioTrack != NULL) {
268 if (mAudioTrack != NULL) {
269 status_t res = mAudioTrack->getPosition(&numFramesPlayed);
302 if (mAudioTrack == NULL) {
307 int64_t numFrames = sizeInBytes / mAudioTrack->frameSize();
398 if (mAudioTrack == NULL) {
441 if (mAudioTrack != NULL)
    [all...]
  /frameworks/av/media/libmedia/
JetPlayer.cpp 87 mAudioTrack = new AudioTrack();
88 status_t status = mAudioTrack->set(AUDIO_STREAM_MUSIC, //TODO parameterize this
96 mAudioTrack.clear();
142 if (mAudioTrack != 0) {
143 mAudioTrack->stop();
144 mAudioTrack->flush();
145 mAudioTrack.clear();
193 mAudioTrack->pause();
225 if (mAudioTrack == NULL) {
232 if ((temp = mAudioTrack->write(mAudioBuffer, num_output)) < 0)
    [all...]
  /frameworks/base/media/java/android/media/
MediaSync.java 200 private AudioTrack mAudioTrack = null;
335 mAudioTrack = audioTrack;
446 if (mAudioTrack != null) {
447 mAudioTrack.pause();
448 mAudioTrack.flush();
451 mAudioTrack.stop();
509 if (mAudioTrack == null || mAudioThread == null) {
539 if (size > 0 && mAudioTrack.getPlayState() != AudioTrack.PLAYSTATE_PLAYING) {
541 mAudioTrack.play();
546 int sizeWritten = mAudioTrack.write
    [all...]
  /developers/build/prebuilts/gradle/WearSpeakerSample/wear/src/main/java/com/example/android/wearable/speaker/
SoundRecorder.java 179 private AudioTrack mAudioTrack;
191 mAudioTrack = new AudioTrack(AudioManager.STREAM_MUSIC, RECORDING_RATE,
196 mAudioTrack.setVolume(AudioTrack.getMaxVolume());
197 mAudioTrack.play();
203 mAudioTrack.write(buffer, 0, read);
217 mAudioTrack.release();
  /developers/samples/android/wearable/wear/WearSpeakerSample/wear/src/main/java/com/example/android/wearable/speaker/
SoundRecorder.java 179 private AudioTrack mAudioTrack;
191 mAudioTrack = new AudioTrack(AudioManager.STREAM_MUSIC, RECORDING_RATE,
196 mAudioTrack.setVolume(AudioTrack.getMaxVolume());
197 mAudioTrack.play();
203 mAudioTrack.write(buffer, 0, read);
217 mAudioTrack.release();
  /development/samples/browseable/WearSpeakerSample/src/com.example.android.wearable.speaker/
SoundRecorder.java 179 private AudioTrack mAudioTrack;
191 mAudioTrack = new AudioTrack(AudioManager.STREAM_MUSIC, RECORDING_RATE,
196 mAudioTrack.setVolume(AudioTrack.getMaxVolume());
197 mAudioTrack.play();
203 mAudioTrack.write(buffer, 0, read);
217 mAudioTrack.release();
  /frameworks/base/media/jni/soundpool/
SoundPool.cpp 758 if (mAudioTrack != 0 && mPrevSampleID == sample->sampleID()) {
760 if (mAudioTrack->setSampleRate(sampleRate) == NO_ERROR) {
761 newTrack = mAudioTrack;
762 ALOGV("reusing track %p for sample %d", mAudioTrack.get(), sample->sampleID());
789 oldTrack = mAudioTrack;
798 mAudioTrack = newTrack;
814 mAudioTrack->start();
821 mAudioTrack.clear();
944 mAudioTrack->stop();
983 mAudioTrack->pause()
    [all...]
  /frameworks/wilhelm/src/android/
AudioPlayer_to_android.cpp 245 } else if (ap->mAudioTrack != 0) {
246 ap->mAudioTrack->setVolume(leftVol, rightVol);
477 // (ap->mAudioTrack is supposed to be NULL until then)
514 // (ap->mAudioTrack is supposed to be NULL until then)
586 if ((ap->mAudioTrack != 0) && (ap->mAuxEffect != 0)) {
840 if ((ap->mAudioTrack != 0) && (!ap->mSeek.mLoopEnabled)) {
841 ap->mAudioTrack->stop();
    [all...]
  /frameworks/av/cmds/stagefright/
SimplePlayer.cpp 532 if (state->mAudioTrack != NULL) {
586 state->mAudioTrack = new AudioTrack(
601 CHECK(state->mAudioTrack != NULL);
603 if (state->mAudioTrack->stopped()) {
604 state->mAudioTrack->start();
608 CHECK_EQ(state->mAudioTrack->getPosition(&numFramesPlayed), (status_t)OK);
611 state->mAudioTrack->frameCount()
615 numFramesAvailableToWrite * state->mAudioTrack->frameSize();
628 ssize_t nbytes = state->mAudioTrack->write(
635 uint32_t numFramesWritten = nbytes / state->mAudioTrack->frameSize()
    [all...]
  /frameworks/av/media/libmediaplayerservice/nuplayer/
RTSPSource.cpp 160 if ((mAudioTrack != NULL && mAudioTrack->isFinished(mediaDurationUs))
167 if (mAudioTrack != NULL
168 && (durationUs = mAudioTrack->getBufferedDurationUs(&err))
254 return audio ? mAudioTrack : mVideoTrack;
269 if (mAudioTrack != NULL
270 && mAudioTrack->getFormat()->findInt64(
642 CHECK(mAudioTrack == NULL);
670 if ((isAudio && mAudioTrack == NULL)
675 mAudioTrack = source
    [all...]

Completed in 1613 milliseconds

1 2