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.
SPBPauseRecording
You can use theSPBPauseRecording
function to pause recording from a sound input device.
FUNCTION SPBPauseRecording (inRefNum: LongInt): OSErr;
inRefNum
- The device reference number of the sound input device, as obtained from the
SPBOpenDevice
function.DESCRIPTION
TheSPBPauseRecording
function pauses recording from the device specified by theinRefNum
parameter. The recording must be asynchronous for this call to have any effect.SPECIAL CONSIDERATIONS
You can call theSPBPauseRecording
function at interrupt time.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for theSPBPauseRecording
function are
Trap macro Selector _SoundDispatch $02280014 RESULT CODES
noErr 0 No error siBadSoundInDevice -221 Invalid sound input device