SGSetSoundInputDriver
Some sound channel components may use sound input devices to obtain their source data. The SGSetSoundInputDriver function allows the sequence grabber component to assign a sound input device to your sound channel.
pascal ComponentResult SGSetSoundInputDriver (SGChannel c,
const Str255 driverName);
c
- Identifies the channel connection for this operation.
driverName
- Specifies the name of the sound input device. This is a Pascal string, and it must correspond to a valid sound input device.
DESCRIPTION
If your sound channel component does not use sound input devices, return a nonzero result code.
RESULT CODES
| noDeviceForChannel | -9400 | Channel component cannot find its device |
| cantDoThatInCurrentMode | -9402 | Request invalid in current mode |
| deviceCantMeetRequest | -9408 | Device cannot support grabber |
SEE ALSO
For more information about sound input devices, see Inside Macintosh: More Macintosh Toolbox--in particular, refer to the discussion of the SPBGetIndexedDevice function in the chapter "Sound Manager."