Lines Matching refs:bufferId
53 * public void onAudioBufferConsumed(MediaSync sync, ByteBuffer audioBuffer, int bufferId) {
66 * sync.queueAudio(audioByteBuffer, bufferId, audioPresentationTimeUs); // non-blocking.
67 * // The audioByteBuffer and bufferId will be returned via callback.
79 * onOutputBufferAvailable(MediaCodec codec, int bufferId, BufferInfo info) {
83 * codec.releaseOutputBuffer(bufferId, 1000 * info.presentationTime);
85 * ByteBuffer audioByteBuffer = codec.getOutputBuffer(bufferId);
86 * sync.queueAudio(audioByteBuffer, bufferId, info.presentationTime);
92 * onAudioBufferConsumed(MediaSync sync, ByteBuffer buffer, int bufferId) {
94 * audioDecoder.releaseBuffer(bufferId, false);
127 * @param bufferId The ID associated with audioBuffer as passed into
131 @NonNull MediaSync sync, @NonNull ByteBuffer audioBuffer, int bufferId);
177 public AudioBuffer(@NonNull ByteBuffer byteBuffer, int bufferId,
180 mBufferIndex = bufferId;
499 * @param bufferId an integer used to identify audioData. It will be returned to
508 @NonNull ByteBuffer audioData, int bufferId, long presentationTimeUs) {
515 mAudioBuffers.add(new AudioBuffer(audioData, bufferId, presentationTimeUs));