AVAudioSinkNode.CreateRealtimeSafe(AVAudioSinkNodeReceiverHandler2) 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.
Creates an AVAudioSinkNode with a realtime-safe receiver block to receive audio data from the input.
public static AVFoundation.AVAudioSinkNode CreateRealtimeSafe(AVFoundation.AVAudioSinkNodeReceiverHandler2 receiverHandler);
static member CreateRealtimeSafe : AVFoundation.AVAudioSinkNodeReceiverHandler2 -> AVFoundation.AVAudioSinkNode
Parameters
- receiverHandler
- AVAudioSinkNodeReceiverHandler2
The realtime-safe callback that receives audio data from the input. It is called on the realtime thread, so it must be handled in a thread-safe manner and must not make any blocking calls.
Returns
A new AVAudioSinkNode.
Remarks
This is the preferred way to create an AVAudioSinkNode.