StartIO
Tells the device to start I/O.
Declaration
virtual kern_return_t StartIO(IOUserAudioStartStopFlags in_flags);Parameters
- in_flags:
A
IOUserAudioStartStopFlagto indicate I/O startup 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 startup, then call the superclass to update the I/O state. The framework expects this call to always succeed or fail. The hardware can take as long as it needs in this call, provided it always either succeeds or fails.
All streams added to the device also receive a call to their StartIO methods.