Carbon


CompressionInfo

Header: Sound.h

struct CompressionInfo {
    SInt32 recordSize; 
    OSType format; 
    SInt16 compressionID; 
    UInt16 samplesPerPacket; 
    UInt16 bytesPerPacket; 
    UInt16 bytesPerFrame; 
    UInt16 bytesPerSample; 
    UInt16 futureUse1;
};
typedef CompressionInfo CompressionInfoPtr;

Field descriptions

recordSize

The size of this compression information structure.

format

The compression format.

compressionID

The compression ID.

samplesPerPacket

The number of samples in each packet.

bytesPerPacket

The number of bytes in each packet.

bytesPerFrame

The number of bytes in each frame.

bytesPerSample

The number of bytes in each sample.

futureUse1

Reserved for use by Apple Computer, Inc. You should set this field to 0.

When the Sound Manager calls your SoundComponentGetInfo function with the siCompressionFactor selector, you need to return a pointer to a compression information structure, which is defined by the CompressionInfo data type.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)