MediaSync.QueueAudio(ByteBuffer, Int32, Int64) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Queues the audio data asynchronously for playback (AudioTrack must be in streaming mode).
[Android.Runtime.Register("queueAudio", "(Ljava/nio/ByteBuffer;IJ)V", "", ApiSince=23)]
public void QueueAudio (Java.Nio.ByteBuffer audioData, int bufferId, long presentationTimeUs);
[<Android.Runtime.Register("queueAudio", "(Ljava/nio/ByteBuffer;IJ)V", "", ApiSince=23)>]
member this.QueueAudio : Java.Nio.ByteBuffer * int * int64 -> unit
Parameters
- audioData
- ByteBuffer
the buffer that holds the data to play. This buffer will be returned to the client via registered callback.
- bufferId
- Int32
an integer used to identify audioData. It will be returned to the client along with audioData. This helps applications to keep track of audioData, e.g., it can be used to store the output buffer index used by the audio codec.
- presentationTimeUs
- Int64
the presentation timestamp in microseconds for the first frame in the buffer.
- Attributes
Remarks
Queues the audio data asynchronously for playback (AudioTrack must be in streaming mode). If the audio track was flushed as a result of #flush
, it will be restarted.
Java documentation for android.media.MediaSync.queueAudio(java.nio.ByteBuffer, int, long)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.