pub struct SwParams {
pub avail_min: u32,
pub start_threshold: u32,
pub stop_threshold: u32,
pub silence_threshold: u32,
pub silence_size: u32,
}Expand description
Software parameters for a PCM device (analogous to snd_pcm_sw_params)
Fields§
§avail_min: u32Minimum available frames before waking up the application
start_threshold: u32Start threshold: number of frames written before auto-start
stop_threshold: u32Stop threshold: available frames at which device stops (0 = buffer_size)
silence_threshold: u32Silence threshold: frames of silence before filling with silence
silence_size: u32Silence size: number of silence frames to write
Implementations§
Trait Implementations§
impl Copy for SwParams
Auto Trait Implementations§
impl Freeze for SwParams
impl RefUnwindSafe for SwParams
impl Send for SwParams
impl Sync for SwParams
impl Unpin for SwParams
impl UnwindSafe for SwParams
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)