Contents

ExtAudioFileWrapAudioFileID(_:_:_:)

Wraps an audio file object in an extended audio file object.

Declaration

func ExtAudioFileWrapAudioFileID(_ inFileID: AudioFileID, _ inForWriting: Bool, _ outExtAudioFile: UnsafeMutablePointer<ExtAudioFileRef?>) -> OSStatus

Parameters

  • inFileID:

    The audio file object to wrap.

  • inForWriting:

    Use true if you intend to write to the audio file, false otherwise.

  • 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.

See Also

Managing Extended Audio File Objects