GetAvailableStreamFormats
Returns the available stream formats as an array of audio stream basic descriptions.
Declaration
size_t GetAvailableStreamFormats(IOUserAudioStreamBasicDescription *out_formats, size_t in_num_formats);Parameters
- out_formats:
A pointer to a buffer of type
IOUserAudioStreamBasicDescription, with a size ofin_num_formats. On return, this buffer contains the available formats. - in_num_formats:
The size of the
out_formatsbuffer.
Return Value
The number of descriptions populated in the out_formats buffer.
Discussion
This method synchronizes by using the work queue created by the object.