ADC Home > Reference Library > Technical Q&As > Audio > Carbon >

Not Recommended Documentclose button

Important: The information in this document is Not Recommended and should not be used for new development.

Current information on this Reference Library topic can be found here:

Selecting a specific sound input source

Q What is the best way to select a specific sound input source, such as the CD or external microphone?

A Beginning with Mac OS 8.1, the sound input drivers have implemented some new SPBGetDeviceInfo/SPBSetDeviceInfo selectors. Those new selectors are siOSTypeInputSource 'inpt' and siOSTypeInputAvailable 'inav'. They work much like siInputSource and siInputSourceNames, except that they return an OSType rather than an integer and a list of OSTypes rather than a list of names, respectively.

Using the siOSTypeInputSource selector allows you to specify an input source, such as the external microphone, with a simple constant, kExtMicSource ('emic').

If these new selectors are not available, SPBGetDeviceInfo will return siUnknownInfoType, so no preflighting is required. Make the call; it will work or returns an error.

[Jan 16 1998]


Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.