Struct nannou_audio::device::Device [−][src]
pub struct Device { /* fields omitted */ }
Expand description
A device that can be used to spawn an audio stream.
Implementations
The unique name associated with this device.
pub fn supported_input_configs(
&self
) -> Result<SupportedInputConfigs, SupportedStreamConfigsError>
pub fn supported_input_configs(
&self
) -> Result<SupportedInputConfigs, SupportedStreamConfigsError>
An iterator yielding formats that are supported by the backend.
Can return an error if the device is no longer valid (e.g. it has been disconnected).
pub fn supported_output_configs(
&self
) -> Result<SupportedOutputConfigs, SupportedStreamConfigsError>
pub fn supported_output_configs(
&self
) -> Result<SupportedOutputConfigs, SupportedStreamConfigsError>
An iterator yielding configs that are supported by the backend.
Can return an error if the device is no longer valid (e.g. it has been disconnected).
The default config used for input streams.
pub fn default_output_config(
&self
) -> Result<SupportedStreamConfig, DefaultStreamConfigError>
pub fn default_output_config(
&self
) -> Result<SupportedStreamConfig, DefaultStreamConfigError>
The default config used for output streams.
The maximum number of output channels of any format supported by this device.
The maximum number of input channels of any format supported by this device.