Carbon


Sound Component Features Flags

Header: Sound.h

enum {
    k8BitRawIn = 1,
    k8BitTwosIn = 2,
    k16BitIn = 4,
    kStereoIn = 8,
    k8BitRawOut = 256,
    k8BitTwosOut = 512,
    k16BitOut = 1024,
    kStereoOut = 2048,
    kReverse = 65536,
    kRateConvert = 131072,
    kCreateSoundSource = 262144,
    kVMAwareness = 2097152,
    kHighQuality = 4194304,
    kNonRealTime = 8388608
};

Constant descriptions

k8BitRawIn

The component can accept 8 bit offset binary data as input.

k8BitTwosIn

The component can accept 8 bit two’s complement data as input.

k16BitIn

The component can accept 16 bit data as input. 16 bit data is always in two’s complement format.

kStereoIn

The component can accept stereo data as input.

k8BitRawOut

The component can produce 8 bit offset binary data as output.

k8BitTwosOut

The component can produce 8 bit two’s complement data as output.

k16BitOut

The component can produce 16 bit data as output. 16 bit data is always in two’s complement format.

kStereoOut

The component can produce stereo data as output.

kReverse

The component can accept reversed audio data.

kRateConvert

The component can convert sample rates.

kCreateSoundSource

The component can create sound sources.

kVMAwareness
kHighQuality

The component can produce high quality output.

kNonRealTime

You can use these constants to define features of your sound component. You use some combination of these constants to set bits in the componentFlags field of a component description structure, which is contained in a 'thng' resource. These bits represent the kind of data your component can receive as input, the kind of data your component can produce as output, the operations your component can perform, and the performance of your component.


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