pub struct Device(_);
Expand description
The Device implementation associated with the platform’s dynamically dispatched Host type.
Trait Implementations
The iterator type yielding supported input stream formats.
The iterator type yielding supported output stream formats.
The human-readable name of the device.
pub fn supported_input_configs(
&self
) -> Result<<Device as DeviceTrait>::SupportedInputConfigs, SupportedStreamConfigsError>
pub fn supported_input_configs(
&self
) -> Result<<Device as DeviceTrait>::SupportedInputConfigs, SupportedStreamConfigsError>
An iterator yielding formats that are supported by the backend. Read more
pub fn supported_output_configs(
&self
) -> Result<<Device as DeviceTrait>::SupportedOutputConfigs, SupportedStreamConfigsError>
pub fn supported_output_configs(
&self
) -> Result<<Device as DeviceTrait>::SupportedOutputConfigs, SupportedStreamConfigsError>
An iterator yielding output stream formats that are supported by the device. Read more
pub fn default_input_config(
&self
) -> Result<SupportedStreamConfig, DefaultStreamConfigError>
pub fn default_input_config(
&self
) -> Result<SupportedStreamConfig, DefaultStreamConfigError>
The default input stream format for the device.
pub fn default_output_config(
&self
) -> Result<SupportedStreamConfig, DefaultStreamConfigError>
pub fn default_output_config(
&self
) -> Result<SupportedStreamConfig, DefaultStreamConfigError>
The default output stream format for the device.
pub fn build_input_stream_raw<D, E>(
&self,
config: &StreamConfig,
sample_format: SampleFormat,
data_callback: D,
error_callback: E
) -> Result<<Device as DeviceTrait>::Stream, BuildStreamError> where
D: 'static + FnMut(&Data, &InputCallbackInfo) + Send,
E: 'static + FnMut(StreamError) + Send,
pub fn build_input_stream_raw<D, E>(
&self,
config: &StreamConfig,
sample_format: SampleFormat,
data_callback: D,
error_callback: E
) -> Result<<Device as DeviceTrait>::Stream, BuildStreamError> where
D: 'static + FnMut(&Data, &InputCallbackInfo) + Send,
E: 'static + FnMut(StreamError) + Send,
Create a dynamically typed input stream.
pub fn build_output_stream_raw<D, E>(
&self,
config: &StreamConfig,
sample_format: SampleFormat,
data_callback: D,
error_callback: E
) -> Result<<Device as DeviceTrait>::Stream, BuildStreamError> where
D: 'static + FnMut(&mut Data, &OutputCallbackInfo) + Send,
E: 'static + FnMut(StreamError) + Send,
pub fn build_output_stream_raw<D, E>(
&self,
config: &StreamConfig,
sample_format: SampleFormat,
data_callback: D,
error_callback: E
) -> Result<<Device as DeviceTrait>::Stream, BuildStreamError> where
D: 'static + FnMut(&mut Data, &OutputCallbackInfo) + Send,
E: 'static + FnMut(StreamError) + Send,
Create a dynamically typed output stream.
fn build_input_stream<T, D, E>(
&self,
config: &StreamConfig,
data_callback: D,
error_callback: E
) -> Result<Self::Stream, BuildStreamError> where
T: Sample,
D: 'static + FnMut(&[T], &InputCallbackInfo) + Send,
E: 'static + FnMut(StreamError) + Send,
fn build_input_stream<T, D, E>(
&self,
config: &StreamConfig,
data_callback: D,
error_callback: E
) -> Result<Self::Stream, BuildStreamError> where
T: Sample,
D: 'static + FnMut(&[T], &InputCallbackInfo) + Send,
E: 'static + FnMut(StreamError) + Send,
Create an input stream.
fn build_output_stream<T, D, E>(
&self,
config: &StreamConfig,
data_callback: D,
error_callback: E
) -> Result<Self::Stream, BuildStreamError> where
T: Sample,
D: 'static + FnMut(&mut [T], &OutputCallbackInfo) + Send,
E: 'static + FnMut(StreamError) + Send,
fn build_output_stream<T, D, E>(
&self,
config: &StreamConfig,
data_callback: D,
error_callback: E
) -> Result<Self::Stream, BuildStreamError> where
T: Sample,
D: 'static + FnMut(&mut [T], &OutputCallbackInfo) + Send,
E: 'static + FnMut(StreamError) + Send,
Create an output stream.