- processingCallback
- Tap handler to invoke.
- flags
- Determines the kind of processing that this tap does (pre-process, post-process or siphon).
- status
- Result code from creating the processing tap.
Object that can be used to control the tap. Disposing it terminates the tap.
Taps will receive the audio data once the buffer is decoded for output queues and input data before encoding for input queues. The flags determine when the processing takes place.
There are three types: pre-processing, post-processing and siphon. The first two should provide the data requested during the callback, typically by calling the AudioToolbox.AudioQueueProcessingTap's GetSourceAudio method and optionally performing some transormation on the buffers and returning these buffers to the caller. Siphoning taps receive buffers with the data and can inspect the data, but should not alter its contents. See the AudioToolbox.AudioQueueProcessingTapDelegate documentation for more information.
To establish a tap, the queue must be in the stopped state.