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 Devices.

Enumerate the available audio devices on the system that support input streams.

Produces an iterator yielding Devices.

Enumerate the available audio devices on the system that support output streams.

Produces an iterator yielding Devices.

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.

Trait Implementations

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.