ExtAudioFileWrapAudioFileID(_:_:_:)
Wraps an audio file object in an extended audio file object.
Declaration
func ExtAudioFileWrapAudioFileID(_ inFileID: AudioFileID, _ inForWriting: Bool, _ outExtAudioFile: UnsafeMutablePointer<ExtAudioFileRef?>) -> OSStatusParameters
- inFileID:
The audio file object to wrap.
- inForWriting:
Use
trueif you intend to write to the audio file,falseotherwise. - outExtAudioFile:
On output, a newly allocated extended audio file object.
Return Value
A result code.
Discussion
Allocates a new extended audio file object that wraps an existing audio file object. Your application is responsible for keeping the audio file object open until the extended audio file object is disposed.