StopIO
Tells the device to stop I/O.
Declaration
virtual kern_return_t StopIO(IOUserAudioStartStopFlags in_flags);Parameters
- in_flags:
A
IOUserAudioStartStopFlagto indicate I/O shutdown behavior.
Return Value
kIOReturnSuccess on success, or another value if an error occurs. For a list of error codes, see Error Codes.
Discussion
The default implementation always returns kIOReturnSuccess.
Subclass and override this method to handle hardware-specific tasks during I/O shutdown, then call the superclass to update the I/O state. The framework expects this call to always succeed or fail.
All streams added to the device also receive a call to their StopIO methods.