图像

Apple mac os x audio file type

这个基本是经常用到的,特别是音频开发相关,具体如sdk的代码里定义的:

typedef UInt32 AudioFileTypeID;

/*!
    @enum Audio File Types
    @abstract   Constants for the built-in audio file types.
    @discussion These constants are used to indicate the type of file to be written, or as a hint to
          what type of file to expect from data provided.
    @constant   kAudioFileAIFFType
          Audio Interchange File Format (AIFF)
    @constant   kAudioFileAIFCType
          Audio Interchange File Format Compressed (AIFF-C)
    @constant   kAudioFileWAVEType
          Microsoft WAVE
    @constant   kAudioFileSoundDesigner2Type
          Sound Designer II
    @constant   kAudioFileNextType
          NeXT / Sun
    @constant   kAudioFileMP3Type
          MPEG Audio Layer 3 (.mp3)
    @constant   kAudioFileMP2Type
          MPEG Audio Layer 2 (.mp2)
    @constant   kAudioFileMP1Type
          MPEG Audio Layer 1 (.mp1)
    @constant   kAudioFileAC3Type
          AC-3
    @constant   kAudioFileAAC_ADTSType
          Advanced Audio Coding (AAC) Audio Data Transport Stream (ADTS)
    @constant   kAudioFileMPEG4Type
    @constant   kAudioFileM4AType
    @constant   kAudioFileM4BType
    @constant   kAudioFileCAFType
          CoreAudio File Format.
*/

CF_ENUM(AudioFileTypeID) {
        kAudioFileAIFFType        = 'AIFF',
        kAudioFileAIFCType        = 'AIFC',
        kAudioFileWAVEType        = 'WAVE',
        kAudioFileSoundDesigner2Type  = 'Sd2f',
        kAudioFileNextType        = 'NeXT',
        kAudioFileMP3Type       = 'MPG3', // mpeg layer 3
        kAudioFileMP2Type       = 'MPG2', // mpeg layer 2
        kAudioFileMP1Type       = 'MPG1', // mpeg layer 1
    kAudioFileAC3Type       = 'ac-3',
        kAudioFileAAC_ADTSType      = 'adts',
        kAudioFileMPEG4Type             = 'mp4f',
        kAudioFileM4AType               = 'm4af',
        kAudioFileM4BType               = 'm4bf',
    kAudioFileCAFType       = 'caff',
    kAudioFile3GPType       = '3gpp',
    kAudioFile3GP2Type        = '3gp2',  
    kAudioFileAMRType       = 'amrf'   
};

发表评论