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.
SPBStopRecording
You can use theSPBStopRecording
function to end a recording from a sound input device.
FUNCTION SPBStopRecording (inRefNum: LongInt): OSErr;
inRefNum
- The device reference number of the sound input device, as obtained from the
SPBOpenDevice
function.DESCRIPTION
TheSPBStopRecording
function stops recording from the device specified by theinRefNum
parameter. The recording must be asynchronous forSPBStopRecording
to have any effect. When you callSPBStopRecording
, the sound input completion routine specified in thecompletionRoutine
field of the sound input parameter block is called and theerror
field of that parameter block is set toabortErr
. If you are writing a device driver, you will receive aKillIO
Status
call. See the section "Writing a Sound Input Device Driver" beginning on page 3-13 for more information.SPECIAL CONSIDERATIONS
You can call theSPBStopRecording
function at interrupt time.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for theSPBStopRecording
function are
Trap macro Selector _SoundDispatch $02300014 RESULT CODES
noErr 0 No error siBadSoundInDevice -221 Invalid sound input device