Called by the system when an audio unit has provided a buffer of output samples.
- iOS 10.0+
- macOS 10.12+
- Mac Catalyst 13.0+
- tvOS 10.0+
Custom data that you provided when registering your callback with the audio unit.
The time stamp that corresponds to the first sample of audio data produced in AudioUnitRender (its output data).
The sample number of the input that is represented in the first sample of that output time stamp.
The number of input samples that are represented in an output buffer.
A result code.
If you named your callback function
My, you would declare it like this:
When your application uses a varispeed or pitch-shifting audio unit, it may not be clear which input samples are represented in a buffer of output samples. This callback function addresses this issue by providing the input sample number corresponding to the first sample in an output buffer.