MTAudioProcessingTapCreate(_:_:_:_:)
Creates a new audio processing tap.
Declaration
func MTAudioProcessingTapCreate(_ allocator: CFAllocator?, _ callbacks: UnsafePointer<MTAudioProcessingTapCallbacks>, _ flags: MTAudioProcessingTapCreationFlags, _ tapOut: UnsafeMutablePointer<MTAudioProcessingTap?>) -> OSStatusParameters
- allocator:
The allocator to use to allocate memory for the new tap. Pass
NULLorkCFAllocatorDefaultto use the current default allocator. - callbacks:
An callbacks struct. Mtaudioprocessingtap makes a copy of this struct.
- flags:
Flags that are used to control aspects of the processing tap. Valid flags are:
- Kmtaudioprocessingtapcreationflag_preeffects
processing is done before any further effects are applied by the audio queue to the audio.
- Kmtaudioprocessingtapcreationflag_posteffects
processing is done after all processing is done, including that of other taps.
- tapOut:
The processing tap object.
Return Value
An OSStatus result code.
Overview
The processing tap will then be used to process decoded data. The processing is performed on audio either before or after any effects or other processing (varispeed, etc) is applied by the audio queue.