Contents

AudioFileInitialize

Declaration

extern OSStatus AudioFileInitialize(const struct FSRef *inFileRef, AudioFileTypeID inFileType, const AudioStreamBasicDescription *inFormat, AudioFileFlags inFlags, AudioFileID*outAudioFile);

Parameters

  • inFileRef:

    A pointer to the audio file you want to initialize.

  • inFileType:

    The type of audio file to initialize the file to.

  • inFormat:

    A pointer to the structure that describes the format of the data.

  • inFlags:

    Flags for creating or opening the file. Currently set to 0.

  • outAudioFile:

    On output, a pointer to the newly created audio file.

Return Value

A result code. See Result Codes.

Discussion

This deprecated function deletes the content of an existing audio file to let you write over it.

See Also

Functions