init
Initializes an instance of the audio stream class.
Declaration
virtual bool init(IOUserAudioDriver *in_driver, IOUserAudioStreamDirection in_direction, IOMemoryDescriptor *in_io_memory_descriptor);Parameters
- in_driver:
The Iouseraudiodriver that owns this object.
- in_direction:
A
IOUserAudioStreamDirectionfor the stream’s direction: input or output. - in_io_memory_descriptor:
A pointer to a Iomemorydescriptor. The stream maps the descriptor’s buffer to the Host for doing audio I/O.
Return Value
true if initialization succeeded; false otherwise.