Lines Matching refs:track
34 * 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.
96 AudioTrack track = createStreamingAudioTrack();
98 mAudioTrack = track;
101 if (track == null) {
118 AudioTrack track = null;
120 track = mAudioTrack;
123 if (track == null || mStopped) {
126 final int bytesWritten = writeToAudioTrack(track, data);
133 AudioTrack track = null;
135 track = mAudioTrack;
137 if (track == null) {
138 if (DBG) Log.d(TAG, "Audio track null [duplicate call to waitAndRelease ?]");
144 // before rendering the track mixable.
146 // If mStopped is true, the track would already have been stopped, so not
150 Log.d(TAG, "Stopping audio track to flush audio, state was : " +
151 track.getPlayState() + ",stopped= " + mStopped);
155 track.stop();
158 // Block until the audio track is done only if we haven't stopped yet.
160 if (DBG) Log.d(TAG, "Waiting for audio track to complete : " + mAudioTrack.hashCode());
167 if (DBG) Log.d(TAG, "Releasing audio track [" + track.hashCode() + "]");
171 track.release();
221 Log.w(TAG, "Unable to create audio track.");
252 // have no option but to wait until we think the track would finish
293 // Check if the audio track has made progress since the last loop