Struct nannou_audio::Host [−][src]
pub struct Host { /* fields omitted */ }
Expand description
The top-level audio API, for enumerating devices and spawning input/output streams.
Implementations
Instantiate the current host for the platform.
Initialise the API.
The Default
implementation for Host
calls this constructor internally.
Enumerate the available audio devices on the system.
Produces an iterator yielding Device
s.
Enumerate the available audio devices on the system that support input streams.
Produces an iterator yielding Device
s.
Enumerate the available audio devices on the system that support output streams.
Produces an iterator yielding Device
s.
The current default audio input device.
The current default audio output device.
Begin building a new input audio stream.
If this is the first time a stream has been created, this method will spawn the
cpal::EventLoop::run
method on its own thread, ready to run built streams.
Begin building a new output audio stream.
If this is the first time a stream has been created, this method will spawn the
cpal::EventLoop::run
method on its own thread, ready to run built streams.