pub struct HwParams {
pub sample_rate: u32,
pub channels: u8,
pub format: PcmFormat,
pub buffer_size: u32,
pub period_size: u32,
}Expand description
Hardware parameters for a PCM device (analogous to snd_pcm_hw_params)
Fields§
§sample_rate: u32Sample rate in Hz
channels: u8Number of channels
format: PcmFormatSample format
buffer_size: u32Buffer size in frames
period_size: u32Period size in frames
Implementations§
Trait Implementations§
impl Copy for HwParams
Auto Trait Implementations§
impl Freeze for HwParams
impl RefUnwindSafe for HwParams
impl Send for HwParams
impl Sync for HwParams
impl Unpin for HwParams
impl UnwindSafe for HwParams
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)