pub(crate) struct PbSettings {
pub(crate) device_name: Option<String>,
pub(crate) sample_rate: u32,
pub(crate) channels: i32,
pub(crate) latency_ms: i32,
pub(crate) max_buffer_bytes: usize,
pub(crate) debug_logging: bool,
}Expand description
Playback settings, snapshotted from the Python AudioPlaybackSettings at
start so the playback thread owns an immutable copy for the run’s lifetime.
Fields§
§device_name: Option<String>§sample_rate: u32§channels: i32§latency_ms: i32§max_buffer_bytes: usize§debug_logging: boolTrait Implementations§
Source§impl Clone for PbSettings
impl Clone for PbSettings
Source§fn clone(&self) -> PbSettings
fn clone(&self) -> PbSettings
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§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 PbSettings
impl RefUnwindSafe for PbSettings
impl Send for PbSettings
impl Sync for PbSettings
impl Unpin for PbSettings
impl UnsafeUnpin for PbSettings
impl UnwindSafe for PbSettings
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more