Type Alias

AURenderPullInputBlock

A block to supply audio input to a render block.

Declaration

typedef AUAudioUnitStatus (^AURenderPullInputBlock)(AudioUnitRenderActionFlags *actionFlags, const AudioTimeStamp *timestamp, AUAudioFrameCount frameCount, NSInteger inputBusNumber, AudioBufferList *inputData);

Discussion

The caller must supply valid buffers in the input data’s mBuffers' mData and mDataByteSize fields (mDataByteSize must be consistent with frameCount). This block may provide input in those specified buffers, or it may replace the mData pointers with pointers to memory which it owns and guarantees will remain valid until the next render cycle.

The block returns an audio unit status result code. If instead an error is returned, the input data should be assumed to be invalid.

The block takes the following parameters:

actionFlags

The pointer to the action flags.

timestamp

The HAL time at which the input data will be rendered. If there is a sample rate conversion or time compression/expansion downstream, the sample time will not be valid.

frameCount

The number of input sample frames requested.

inputBusNumber

The index of the input bus being pulled.

inputData

The input audio data.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software