Struct nannou::app::Audio[][src]

pub struct Audio { /* fields omitted */ }

An API accessed via app.audio for enumerating audio devices and spawning input/output audio streams with either default or custom stream format.

Methods

impl Audio
[src]

Important traits for Devices

Enumerate the available audio devices on the system.

Produces an iterator yielding audio::Devices.

Important traits for Devices

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

Produces an iterator yielding audio::Devices.

Important traits for Devices

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

Produces an iterator yielding audio::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.

Auto Trait Implementations

impl Send for Audio

impl !Sync for Audio