pub struct AudioSpec {
pub sample_rate: u32,
pub channels: u16,
}Expand description
Audio specification defining sample rate and channel count.
Fields§
§sample_rate: u32Sample rate in Hz (e.g., 44100, 48000)
channels: u16Number of audio channels (1 = mono, 2 = stereo)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AudioSpec
impl RefUnwindSafe for AudioSpec
impl Send for AudioSpec
impl Sync for AudioSpec
impl Unpin for AudioSpec
impl UnsafeUnpin for AudioSpec
impl UnwindSafe for AudioSpec
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