Searched refs:mAudioTrack (Results 1 – 6 of 6) sorted by relevance
43 private AudioTrack mAudioTrack; field in NonBlockingAudioTrack75 mAudioTrack = new AudioTrack( in NonBlockingAudioTrack()94 mAudioTrack = new AudioTrack(audioAttributes, audioFormat, bufferSize, in NonBlockingAudioTrack()102 int numFramesPlayed = mAudioTrack.getPlaybackHeadPosition(); in getAudioTimeUs()109 mAudioTrack.getTimestamp(timestamp); in getTimestamp()119 mAudioTrack.play(); in play()124 mAudioTrack.stop(); in stop()132 mAudioTrack.pause(); in pause()136 if (mAudioTrack.getPlayState() == AudioTrack.PLAYSTATE_PLAYING) { in flush()139 mAudioTrack.flush(); in flush()[all …]
60 private NonBlockingAudioTrack mAudioTrack; field in CodecState145 if (mAudioTrack != null) { in release()146 mAudioTrack.release(); in release()147 mAudioTrack = null; in release()158 if (mAudioTrack != null) { in start()159 mAudioTrack.play(); in start()164 if (mAudioTrack != null) { in pause()165 mAudioTrack.pause(); in pause()183 if (mAudioTrack != null in flush()184 && mAudioTrack.getPlayState() != AudioTrack.PLAYSTATE_PLAYING) { in flush()[all …]
232 mAudioTrack = track; in MockOnPlaybackPositionUpdateListener()237 mAudioTrack = track; in MockOnPlaybackPositionUpdateListener()243 int position = mAudioTrack.getPlaybackHeadPosition(); in onMarkerReached()248 mAudioTrack.setNotificationMarkerPosition(mMarkerPosition)); in onMarkerReached()257 mOnPeriodicNotificationCalled.add(mAudioTrack.getPlaybackHeadPosition()); in onPeriodicNotification()276 mAudioTrack.setPlaybackPositionUpdateListener(null); in release()277 mAudioTrack = null; in release()281 private AudioTrack mAudioTrack; field in AudioTrack_ListenerTest.MockOnPlaybackPositionUpdateListener
597 private AudioTrack mAudioTrack = null; field in MediaSyncTest.Decoder687 if (mAudioTrack != null) { in release()688 mAudioTrack.release(); in release()689 mAudioTrack = null; in release()702 if (mAudioTrack == null) { in getAudioTrack()719 mAudioTrack = new AudioTrack( in getAudioTrack()728 return mAudioTrack; in getAudioTrack()
429 AudioTrack mAudioTrack; field in RoutingTest.AudioTrackFiller437 mAudioTrack = audioTrack; in AudioTrackFiller()453 while (mAudioTrack != null && mPlaying) { in run()454 mAudioTrack.write(mAudioData, 0, mBufferSize); in run()
52 private AudioTrack mAudioTrack; field in SoundPlayerObject127 if (valuesAvailable > 0 && mAudioTrack != null) { in run()134 mAudioTrack.write(mAudioShortArray, 0, valuesOfInterest); in run()398 mAudioTrack = atb.build(); in setSoundWithResId()405 mAudioTrack.setPlaybackPositionUpdateListener(this); in setSoundWithResId()406 mAudioTrack.setPositionNotificationPeriod(mBlockSizeSamples); in setSoundWithResId()428 if (mAudioTrack != null) { in isPlaying()429 result = mAudioTrack.getPlayState() == AudioTrack.PLAYSTATE_PLAYING; in isPlaying()479 if (mAudioTrack != null && isInitialized) { in play()484 mAudioTrack.play(); in play()[all …]