Carbon


Gestalt Selector and Response Bits

Header: Gestalt.h

enum {
    gestaltSoundAttr = 'snd ',
    gestaltStereoCapability = 0,
    gestaltStereoMixing = 1,
    gestaltSoundIOMgrPresent = 3,
    gestaltBuiltInSoundInput = 4,
    gestaltHasSoundInputDevice = 5,
    gestaltPlayAndRecord = 6,
    gestalt16BitSoundIO = 7,
    gestaltStereoInput = 8,
    gestaltLineLevelInput = 9,
    gestaltSndPlayDoubleBuffer = 10,
    gestaltMultiChannels = 11,
    gestalt16BitAudioSupport = 12
};

Constant descriptions

gestaltSoundAttr

The Gestalt selector which you pass to the Gestalt function.

gestaltStereoCapability

Set if the built-in sound hardware is able to produce stereo sounds.

gestaltStereoMixing

Set if the built-in sound hardware mixes both left and right channels of stereo sound into a single audio signal for the internal speaker.

gestaltSoundIOMgrPresent

Set if the Sound Input Manager is available.

gestaltBuiltInSoundInput

Set if a built-in sound input device is available.

gestaltHasSoundInputDevice

Set if a sound input device is available. This device can be either built-in or external.

gestaltPlayAndRecord

Set if the built-in sound hardware is able to play and record sounds simultaneously. If this bit is clear, the built-in sound hardware can either play or record, but not do both at once. This bit is valid only if the gestaltBuiltInSoundInput bit is set, and it applies only to any built-in sound input and output hardware.

gestalt16BitSoundIO

Set if the built-in sound hardware is able to play and record 16-bit samples. This indicates that built-in hardware necessary to handle 16-bit data is available.

This bit is not defined for versions of the Sound Manager prior to version 3.0.

gestaltStereoInput

Set if the built-in sound hardware can record stereo sounds.

This bit is not defined for versions of the Sound Manager prior to version 3.0.

gestaltLineLevelInput

Set if the built-in sound input port requires line level input.

This bit is not defined for versions of the Sound Manager prior to version 3.0.

gestaltSndPlayDoubleBuffer

Set if the Sound Manager supports the play-from-disk functions.

This bit is not defined for versions of the Sound Manager prior to version 3.0.

gestaltMultiChannels

Set if the Sound Manager supports multiple channels of sound.

This bit is not defined for versions of the Sound Manager prior to version 3.0.

gestalt16BitAudioSupport

Set if the Sound Manager can handle 16-bit audio data. This indicates that software necessary to handle 16-bit data is available.

This bit is not defined for versions of the Sound Manager prior to version 3.0.

You can pass the gestaltSoundAttr selector to the Gestalt function to determine information about the sound input capabilities of a Macintosh computer.

The Gestalt function returns information by setting or clearing bits in the response parameter. The bits relevant to the Sound Input Manager are defined by constants.


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