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.
SPBCloseDevice
You can use theSPBCloseDevice
function to close a sound input device.
FUNCTION SPBCloseDevice (inRefNum: LongInt): OSErr;
inRefNum
- The device reference number of the sound input device to close.
DESCRIPTION
TheSPBCloseDevice
function closes a device that was previously opened bySPBOpenDevice
and whose device reference number is specified in theinRefNum
parameter.SPECIAL CONSIDERATIONS
Because theSPBCloseDevice
function moves or purges memory, you should not call it at interrupt time.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for theSPBCloseDevice
function are
Trap macro Selector _SoundDispatch $021C0014 RESULT CODES
noErr 0 No error siBadRefNum -229 Invalid reference number