Carbon


Sound Input Device Information Constants

Header: Sound.h

enum {
    siCloseDriver = 'clos',
    siInitializeDriver = 'init',
    siPauseRecording = 'paus',
    siUserInterruptProc = 'user'
};

Constant descriptions

siCloseDriver

The Sound Input Manager sends this selector when it closes a device previously opened with write permission. The sound input device driver should stop any recording in progress, deallocate the input hardware, and initialize local variables to default settings. Your application should never issue this selector directly. The infoData parameter is unused with this selector.

siInitializeDriver

The Sound Input Manager sends this selector when it opens a sound input device with write permission. The sound input device driver initializes local variables and prepares to start recording. If possible, the driver initializes the device to a sampling rate of 22 kHz, a sample size of 8 bits, mono recording, no compression, automatic gain control on, and all other features off. Your application should never issue this selector directly. The infoData parameter is unused with this selector.

siPauseRecording

The Sound Input Manager uses this selector to get or set the current pause state. The sound input device driver continues recording but does not store the sampled data in a buffer. Your application should never issue this selector directly. The infoData parameter points to an integer, which indicates the state of pausing (0 is off, 1 is on).

siUserInterruptProc

The Sound Input Manager sends this selector to specify the sound input interrupt function that the sound input device driver should call. Your application should never issue this selector directly. The infoData parameter points to a function pointer, which is the address of the sound input interrupt function.

The constants in this enumeration are used to define information selectors for sound input devices. You can call the SPBSetDeviceInfo and SPBGetDeviceInfo functions to set or get information about the device. You pass each of those functions a sound input device information selector in the infoType parameter to specify the type of information you need.

Some of these selectors are intended for use only by the Sound Input Manager and other parts of the system software that need to interact directly with sound input device drivers. (For example, the Sound Input Manager sends the siCloseDriver selector to a sound input device driver when it is closing the device.) In general, applications should not use these reserved selectors.


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