pub struct AudioDeviceCapabilities {
pub min_sample_rate: u32,
pub max_sample_rate: u32,
pub min_channels: u8,
pub max_channels: u8,
pub supported_formats: Vec<SampleFormat>,
pub playback: bool,
pub capture: bool,
}Expand description
Describes the hardware capabilities of an audio device
Fields§
§min_sample_rate: u32Minimum supported sample rate in Hz
max_sample_rate: u32Maximum supported sample rate in Hz
min_channels: u8Minimum supported channel count
max_channels: u8Maximum supported channel count
supported_formats: Vec<SampleFormat>List of supported sample formats
playback: boolWhether the device supports playback
capture: boolWhether the device supports capture
Trait Implementations§
Source§impl Clone for AudioDeviceCapabilities
impl Clone for AudioDeviceCapabilities
Source§fn clone(&self) -> AudioDeviceCapabilities
fn clone(&self) -> AudioDeviceCapabilities
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AudioDeviceCapabilities
impl RefUnwindSafe for AudioDeviceCapabilities
impl Send for AudioDeviceCapabilities
impl Sync for AudioDeviceCapabilities
impl Unpin for AudioDeviceCapabilities
impl UnwindSafe for AudioDeviceCapabilities
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)