Mac OS Sound

| Previous | Chapter Contents | Chapter Top | Next |

Legacy Documentclose button

Important: Sound Input Manager is deprecated as of Mac OS X v10.5. For new audio development in Mac OS X, use Core Audio. See the Audio page in the ADC Reference Library.

Interface Changes

In Sound Manager 3.3, SoundInput.h and SoundComponents.h have been merged into Sound.h. The contents of the two former interface files are now empty; all sound interfaces have been moved to Sound.h.

Previously defined in SoundComponents.h were a set of component sub-types used in the 'thng' resource of an audio codec. This OSType was matched with a given sound's format, which determined the codec necessary to support the given sound.

Unfortunately, the usage of these constants was not obvious to many and are required as the value set in the format parameter of the functions GetCompressionInfo , GetCompressionName , SetupSndHeader , and SetupAIFFHeader , and in the CmpSoundHeader , SndDoubleBufferHeader2 , CompressionInfo and SoundComponentData structures. A new set of constants has been created to replace these, along with the addition of the recently supported formats. These are shown in Table 4-1 .

Table 4-1 A new set of constants, replacing old constants 

New Constants

Old Constants

kSoundNotCompressed  
k8BitOffsetBinaryFormat kOffsetBinary
kMACE3Compression kMace3SubType
kMACE6Compression kMace6SubType
kIMACompression kIMA4SubType
kULawCompression kULawSubType
kALawCompression  
kFloat32Format  
kFloat64Format  
k24BitFormat  
k32BitFormat  
k16BitBigEndianFormat kTwosComplement
k16BitLittleEndianFormat kLittleEndianSubType
kMicrosoftADPCMFormat  
kDVIIntelIMAFormat  
kDVAudioFormat  

© 1999 Apple Computer, Inc.

Mac OS Sound

| Previous | Chapter Contents | Chapter Top | Next |

Legacy Documentclose button

Important: Sound Input Manager is deprecated as of Mac OS X v10.5. For new audio development in Mac OS X, use Core Audio. See the Audio page in the ADC Reference Library.