AudioFile_WriteProc
A callback for writing file data when used in conjunction with the Audiofileopenwithcallbacks(_:_:_:_:_:_:_:) or Audiofilecreatewithurl(_:_:_:_:_:) functions.
Declaration
typealias AudioFile_WriteProc = (UnsafeMutableRawPointer, Int64, UInt32, UnsafeRawPointer, UnsafeMutablePointer<UInt32>) -> OSStatusParameters
- inClientData:
A pointer to the client data as set in the
inClientDataparameter to Audiofileopenwithcallbacks(_:_:_:_:_:_:_:) orAudiofileinitializewithcallbacks(_:_:_:_:_:_:_:_:_:). - inPosition:
An offset into the data from which to read.
- requestCount:
The number of bytes to write.
- buffer:
A pointer to the buffer containing the data to write.
- actualCount:
Upon completion, the callback should set this to a pointer to the number of bytes successfully written.
Return Value
A result code. See Result Codes.
Discussion
If you named your function MyAudioFile_WriteProc, you would declare it like this:
Discussion
This callback function is invoked when Audio File Services needs to write data.