Audio File Creation Flags

Flags for use with the AudioFileCreateWithURL and AudioFileCreate functions.

Declaration

enum {
   kAudioFileFlags_EraseFile                = 1
   kAudioFileFlags_DontPageAlignAudioData   = 2
};

Topics

Constants

kAudioFileFlags_DontPageAlignAudioData

Typically, the audio data in a file is page aligned. To make reading the file data as fast as possible, you can use page-aligned data to take advantage of optimized code paths in the file system. However, when space is at a premium, you might want to avoid the additional padding required to attain alignment. To do so, set this flag when calling AudioFileCreate or AudioFileCreateWithURL.