Lines Matching refs:track
35 * The maximum amount of time to wait for an audio track to make progress while
57 * track buffer size (mAudioBufferSize). In this case, we need to call
59 * different logic is required to wait for the track to finish.
95 AudioTrack track = createStreamingAudioTrack();
97 mAudioTrack = track;
100 if (track == null) {
117 AudioTrack track = null;
119 track = mAudioTrack;
122 if (track == null || mStopped) {
125 final int bytesWritten = writeToAudioTrack(track, data);
132 AudioTrack track = null;
134 track = mAudioTrack;
136 if (track == null) {
137 if (DBG) Log.d(TAG, "Audio track null [duplicate call to waitAndRelease ?]");
143 // before rendering the track mixable.
145 // If mStopped is true, the track would already have been stopped, so not
149 Log.d(TAG, "Stopping audio track to flush audio, state was : " +
150 track.getPlayState() + ",stopped= " + mStopped);
154 track.stop();
157 // Block until the audio track is done only if we haven't stopped yet.
159 if (DBG) Log.d(TAG, "Waiting for audio track to complete : " + mAudioTrack.hashCode());
166 if (DBG) Log.d(TAG, "Releasing audio track [" + track.hashCode() + "]");
170 track.release();
226 Log.w(TAG, "Unable to create audio track.");
246 // have no option but to wait until we think the track would finish
287 // Check if the audio track has made progress since the last loop