Type Alias

AudioFile_SetSizeProc

Sets file data size.

Declaration

typedef OSStatus (*AudioFile_SetSizeProc)(void *inClientData, SInt64 inSize);

Parameters

inClientData

A pointer to the client data as set in the inClientData parameter to the AudioFileOpenWithCallbacks or AudioFileInitializeWithCallbacks functions.

Return Value

The callback should return the size of the data.

Discussion

If you named your function MyAudioFile_SetSizeProc, you would declare it like this:

Discussion

This callback gets invoked by an audio file object when it needs to set audio file data size. You pass this callback as a parameter when calling the AudioFileOpenWithCallbacks and AudioFileInitializeWithCallbacks functions.

See Also

Callbacks

AudioFile_ReadProc

Reads audio data when used in conjunction with the AudioFileOpenWithCallbacks or AudioFileInitializeWithCallbacks functions.)

AudioFile_WriteProc

A callback for writing file data when used in conjunction with the AudioFileOpenWithCallbacks or AudioFileCreateWithURL functions.

AudioFile_GetSizeProc

Gets file data size.