Type Alias AudioQueueOutputCallbackBlock

Source
pub type AudioQueueOutputCallbackBlock = *mut DynBlock<dyn Fn(AudioQueueRef, AudioQueueBufferRef)>;
Available on crate features AudioQueue and block2 and objc2-core-audio-types only.
Expand description

Defines a pointer to a block that is called when a playback audio queue has finished taking data from a buffer.

A playback buffer callback is invoked when the audio queue has finished with the data to be played and the buffer is available to your application for reuse. Your application might want to immediately refill and re-enqueue the completed buffer at this time.

Parameter inAQ: The audio queue that invoked the callback.

Parameter inBuffer: The audio queue buffer made available by the audio queue.

See also Apple’s documentation