pub struct AudioFormat {
pub sample_rate: u32,
pub bits_per_sample: u8,
pub channels: u8,
}
Expand description
Audio format configuration
Fields§
§sample_rate: u32
Sampling rate in Hz (e.g., 44100, 48000)
bits_per_sample: u8
Bits per sample (e.g., 16, 24, 32)
channels: u8
Number of channels (1 for mono, 2 for stereo)
Trait Implementations§
Source§impl Clone for AudioFormat
impl Clone for AudioFormat
Source§fn clone(&self) -> AudioFormat
fn clone(&self) -> AudioFormat
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 moreSource§impl Debug for AudioFormat
impl Debug for AudioFormat
impl Copy for AudioFormat
Auto Trait Implementations§
impl Freeze for AudioFormat
impl RefUnwindSafe for AudioFormat
impl Send for AudioFormat
impl Sync for AudioFormat
impl Unpin for AudioFormat
impl UnwindSafe for AudioFormat
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