Contents

SetCurrentStreamFormat

Sets the current stream format to a given audio stream basic description.

Declaration

kern_return_t SetCurrentStreamFormat(const IOUserAudioStreamBasicDescription *in_format);

Parameters

  • in_format:

    A pointer to an IOIUserAudioStreamBasicDescription to use as the new format.

Return Value

kIOReturnSuccess on success, or another value if an error occurs. For a list of error codes, see Error Codes.

Discussion

If successful, changing the format sends a notification to the host to update the object state.

This method synchronizes by using the work queue created by the object.

See Also

Working with Stream Formats