AudioQueue.EnqueueBuffer Method

Definition

Overloads

EnqueueBuffer(AudioQueueBuffer*, AudioStreamPacketDescription[])

Adds a buffer to the buffer queue of an audio queue.

EnqueueBuffer(IntPtr, AudioStreamPacketDescription[])
EnqueueBuffer(IntPtr, Int32, AudioStreamPacketDescription[])

Adds a buffer to the buffer queue of an audio queue.

EnqueueBuffer(AudioQueueBuffer*, Int32, AudioStreamPacketDescription[], Int32, Int32, AudioQueueParameterEvent[], AudioTimeStamp)

Adds a buffer that should play as soon as possible to the buffer queue of a playback audio queue.

EnqueueBuffer(IntPtr, Int32, AudioStreamPacketDescription[], Int32, Int32, AudioQueueParameterEvent[], AudioTimeStamp)

Adds a buffer that should play as soon as possible to the buffer queue of a playback audio queue.

EnqueueBuffer(AudioQueueBuffer*, Int32, AudioStreamPacketDescription[], Int32, Int32, AudioQueueParameterEvent[], AudioTimeStamp, AudioTimeStamp)

Adds a buffer to the buffer queue of a playback audio queue, specifying start time and parameters.

EnqueueBuffer(IntPtr, Int32, AudioStreamPacketDescription[], Int32, Int32, AudioQueueParameterEvent[], AudioTimeStamp, AudioTimeStamp)

Adds a buffer to the buffer queue of a playback audio queue, specifying start time and parameters.

EnqueueBuffer(AudioQueueBuffer*, AudioStreamPacketDescription[])

Adds a buffer to the buffer queue of an audio queue.

public AudioToolbox.AudioQueueStatus EnqueueBuffer (AudioToolbox.AudioQueueBuffer* audioQueueBuffer, AudioToolbox.AudioStreamPacketDescription[] desc);
member this.EnqueueBuffer : nativeptr<AudioToolbox.AudioQueueBuffer> * AudioToolbox.AudioStreamPacketDescription[] -> AudioToolbox.AudioQueueStatus

Parameters

audioQueueBuffer
AudioQueueBuffer*

The audio queue buffer to add to the buffer queue.

desc
AudioStreamPacketDescription[]

An array of packet descriptors for the packets that will be added to the queue.

Returns

AudioQueueStatus.Ok on success, otherwise the error.

Applies to

EnqueueBuffer(IntPtr, AudioStreamPacketDescription[])

public AudioToolbox.AudioQueueStatus EnqueueBuffer (IntPtr audioQueueBuffer, AudioToolbox.AudioStreamPacketDescription[] desc);
member this.EnqueueBuffer : nativeint * AudioToolbox.AudioStreamPacketDescription[] -> AudioToolbox.AudioQueueStatus

Parameters

audioQueueBuffer
IntPtr

nativeint

Returns

Applies to

EnqueueBuffer(IntPtr, Int32, AudioStreamPacketDescription[])

Adds a buffer to the buffer queue of an audio queue.

public AudioToolbox.AudioQueueStatus EnqueueBuffer (IntPtr audioQueueBuffer, int bytes, AudioToolbox.AudioStreamPacketDescription[] desc);
member this.EnqueueBuffer : nativeint * int * AudioToolbox.AudioStreamPacketDescription[] -> AudioToolbox.AudioQueueStatus

Parameters

audioQueueBuffer
IntPtr

nativeint

The audio queue buffer to add to the buffer queue.

bytes
Int32

The number of bytes from the queue buffer to add to the buffer queue. The audioQueueBuffer parameter will be updated with this value.

desc
AudioStreamPacketDescription[]

An array of packet descriptors for the packets that will be added to the queue.

Returns

AudioQueueStatus.Ok on success, otherwise the error.

Applies to

EnqueueBuffer(AudioQueueBuffer*, Int32, AudioStreamPacketDescription[], Int32, Int32, AudioQueueParameterEvent[], AudioTimeStamp)

Adds a buffer that should play as soon as possible to the buffer queue of a playback audio queue.

public AudioToolbox.AudioQueueStatus EnqueueBuffer (AudioToolbox.AudioQueueBuffer* audioQueueBuffer, int bytes, AudioToolbox.AudioStreamPacketDescription[] desc, int trimFramesAtStart, int trimFramesAtEnd, AudioToolbox.AudioQueueParameterEvent[] parameterEvents, out AudioToolbox.AudioTimeStamp actualStartTime);
member this.EnqueueBuffer : nativeptr<AudioToolbox.AudioQueueBuffer> * int * AudioToolbox.AudioStreamPacketDescription[] * int * int * AudioToolbox.AudioQueueParameterEvent[] *  -> AudioToolbox.AudioQueueStatus

Parameters

audioQueueBuffer
AudioQueueBuffer*

The audio queue buffer to add to the buffer queue.

bytes
Int32

The number of bytes from the queue buffer to add to the buffer queue. The audioQueueBuffer parameter will be updated with this value.

desc
AudioStreamPacketDescription[]

An array of packet descriptors for the packets that will be added to the queue.

trimFramesAtStart
Int32

The number of frames to skip at the start of the buffer.

trimFramesAtEnd
Int32

The number of frames to skip at the end of the buffer.

parameterEvents
AudioQueueParameterEvent[]

An array of parameter events for the buffer.

actualStartTime
AudioTimeStamp

The time when the buffer will start playing.

Returns

AudioQueueStatus.Ok on success, otherwise the error.

Applies to

EnqueueBuffer(IntPtr, Int32, AudioStreamPacketDescription[], Int32, Int32, AudioQueueParameterEvent[], AudioTimeStamp)

Adds a buffer that should play as soon as possible to the buffer queue of a playback audio queue.

public AudioToolbox.AudioQueueStatus EnqueueBuffer (IntPtr audioQueueBuffer, int bytes, AudioToolbox.AudioStreamPacketDescription[] desc, int trimFramesAtStart, int trimFramesAtEnd, AudioToolbox.AudioQueueParameterEvent[] parameterEvents, out AudioToolbox.AudioTimeStamp actualStartTime);
member this.EnqueueBuffer : nativeint * int * AudioToolbox.AudioStreamPacketDescription[] * int * int * AudioToolbox.AudioQueueParameterEvent[] *  -> AudioToolbox.AudioQueueStatus

Parameters

audioQueueBuffer
IntPtr

nativeint

The audio queue buffer to add to the buffer queue.

bytes
Int32

The number of bytes from the queue buffer to add to the buffer queue. The audioQueueBuffer parameter will be updated with this value.

desc
AudioStreamPacketDescription[]

An array of packet descriptors for the packets that will be added to the queue.

trimFramesAtStart
Int32

The number of frames to skip at the start of the buffer.

trimFramesAtEnd
Int32

The number of frames to skip at the end of the buffer.

parameterEvents
AudioQueueParameterEvent[]

An array of parameter events for the buffer.

actualStartTime
AudioTimeStamp

The time when the buffer will start playing.

Returns

AudioQueueStatus.Ok on success, otherwise the error.

Applies to

EnqueueBuffer(AudioQueueBuffer*, Int32, AudioStreamPacketDescription[], Int32, Int32, AudioQueueParameterEvent[], AudioTimeStamp, AudioTimeStamp)

Adds a buffer to the buffer queue of a playback audio queue, specifying start time and parameters.

public AudioToolbox.AudioQueueStatus EnqueueBuffer (AudioToolbox.AudioQueueBuffer* audioQueueBuffer, int bytes, AudioToolbox.AudioStreamPacketDescription[] desc, int trimFramesAtStart, int trimFramesAtEnd, AudioToolbox.AudioQueueParameterEvent[] parameterEvents, ref AudioToolbox.AudioTimeStamp startTime, out AudioToolbox.AudioTimeStamp actualStartTime);
member this.EnqueueBuffer : nativeptr<AudioToolbox.AudioQueueBuffer> * int * AudioToolbox.AudioStreamPacketDescription[] * int * int * AudioToolbox.AudioQueueParameterEvent[] *  *  -> AudioToolbox.AudioQueueStatus

Parameters

audioQueueBuffer
AudioQueueBuffer*

The audio queue buffer to add to the buffer queue.

bytes
Int32

The number of bytes from the queue buffer to add to the buffer queue. The audioQueueBuffer parameter will be updated with this value.

desc
AudioStreamPacketDescription[]

An array of packet descriptors for the packets that will be added to the queue.

trimFramesAtStart
Int32

The number of frames to skip at the start of the buffer. This value is ignored if startTime is specified.

trimFramesAtEnd
Int32

The number of frames to skip at the end of the buffer.

parameterEvents
AudioQueueParameterEvent[]

An array of parameter events for the buffer.

startTime
AudioTimeStamp

The time when the buffer should start playing.

actualStartTime
AudioTimeStamp

The time when the buffer will start playing.

Returns

AudioQueueStatus.Ok on success, otherwise the error.

Applies to

EnqueueBuffer(IntPtr, Int32, AudioStreamPacketDescription[], Int32, Int32, AudioQueueParameterEvent[], AudioTimeStamp, AudioTimeStamp)

Adds a buffer to the buffer queue of a playback audio queue, specifying start time and parameters.

public AudioToolbox.AudioQueueStatus EnqueueBuffer (IntPtr audioQueueBuffer, int bytes, AudioToolbox.AudioStreamPacketDescription[] desc, int trimFramesAtStart, int trimFramesAtEnd, AudioToolbox.AudioQueueParameterEvent[] parameterEvents, ref AudioToolbox.AudioTimeStamp startTime, out AudioToolbox.AudioTimeStamp actualStartTime);
member this.EnqueueBuffer : nativeint * int * AudioToolbox.AudioStreamPacketDescription[] * int * int * AudioToolbox.AudioQueueParameterEvent[] *  *  -> AudioToolbox.AudioQueueStatus

Parameters

audioQueueBuffer
IntPtr

nativeint

The audio queue buffer to add to the buffer queue.

bytes
Int32

The number of bytes from the queue buffer to add to the buffer queue. The audioQueueBuffer parameter will be updated with this value.

desc
AudioStreamPacketDescription[]

An array of packet descriptors for the packets that will be added to the queue.

trimFramesAtStart
Int32

The number of frames to skip at the start of the buffer. This value is ignored if startTime is specified.

trimFramesAtEnd
Int32

The number of frames to skip at the end of the buffer.

parameterEvents
AudioQueueParameterEvent[]

An array of parameter events for the buffer.

startTime
AudioTimeStamp

The time when the buffer should start playing.

actualStartTime
AudioTimeStamp

The time when the buffer will start playing.

Returns

AudioQueueStatus.Ok on success, otherwise the error.

Applies to