pub struct AudioStreamSettings {
pub sample_rate: u32,
pub channel_layout: AudioChannelLayout,
}Expand description
Settings for creating an audio stream, including sample rate and channel layout.
Fields§
§sample_rate: u32Sample rate in Hz.
channel_layout: AudioChannelLayoutChannel layout.
Trait Implementations§
Source§impl Clone for AudioStreamSettings
impl Clone for AudioStreamSettings
Source§fn clone(&self) -> AudioStreamSettings
fn clone(&self) -> AudioStreamSettings
Returns a duplicate of the value. Read more
1.0.0 · 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 AudioStreamSettings
impl RefUnwindSafe for AudioStreamSettings
impl Send for AudioStreamSettings
impl Sync for AudioStreamSettings
impl Unpin for AudioStreamSettings
impl UnwindSafe for AudioStreamSettings
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