SPBSetDeviceInfo
SPBSetDeviceInfo Change the settings of a sound input device
#include <SoundInput.h> Sound Manager
OSErr SPBSetDeviceInfo( inRefNum, infoType, infoData);
long inRefNum; a valid reference number for a sound input device
OSType infoType; information type
Ptr infoData; a pointer to the appropriate data
returns Error Code; 0=no error
The SPBSetDeviceInfo function sets information in the device specified in
the inRefNum parameter.
inRefNum a valid reference number for a sound input device
infoType is a selector that specifies the type of information you want to set.
infoData is an address to the appropriate data
Returns: an operating system Error Code.
noErr (0) No error
permErr (-54) Attempt to open locked file for writing
siBadSoundInDevice (-221) Invalid sound input device
siDeviceBusyErr (-227) Sound input device is busy
siUnknownInfoType (-231) Unknown type of information

Notes: A number of selectors are defined by Apple (listed in the section entitled
Getting and Setting Sound Input Device Information ).
Third-party devices can support additional selectors to allow applications to
control special features available on that hardware.