Important: Inside Macintosh: Sound 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.
SPBSetDeviceInfo
You can use theSPBSetDeviceInfo
function to set information in a sound input device.
FUNCTION SPBSetDeviceInfo (inRefNum: LongInt; infoType: OSType; infoData: Ptr): OSErr;
inRefNum
- The device reference number of the sound input device, as obtained from the
SPBOpenDevice
function.infoType
- A sound input device information selector that specifies the type of information you need.
infoData
- A pointer to a buffer. This buffer can contain information on entry, and information might be returned on exit. This buffer must be large enough for the type of information specified in the
infoType
parameter, and the data in the buffer must be set to appropriate values if information needs to be passed in to theSPBSetDeviceInfo
function.DESCRIPTION
TheSPBSetDeviceInfo
function sets information about the sound input device specified by theinRefNum
parameter, based on the data in the buffer specified by theinfoData
parameter.The type of setting you wish to change is specified in the
infoType
parameter. The sound input device information selectors are listed in "Sound Input Device Information Selectors" beginning on page 3-18.SPECIAL CONSIDERATIONS
Because theSPBSetDeviceInfo
function might move memory, you should not call it at interrupt time. Check the selector description of the selector you want to use to see if it moves memory before calling theSPBGetDeviceInfo
function. Most of the selectors do not move memory and are therefore safe to use at interrupt time.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for theSPBSetDeviceInfo
function are
Trap macro Selector _SoundDispatch $063C0014 RESULT CODES