pub struct FmtChunk {
pub chunk_id: [u8; 4],
pub chunk_size: u32,
pub audio_format: u16,
pub num_channels: u16,
pub sample_rate: u32,
pub byte_rate: u32,
pub block_align: u16,
pub bits_per_sample: u16,
}Expand description
Format chunk describing the audio data layout
Fields§
§chunk_id: [u8; 4]Chunk identifier: “fmt “
chunk_size: u32Chunk data size (16 for PCM)
audio_format: u16Audio format (1 = PCM)
num_channels: u16Number of channels (1 = mono, 2 = stereo)
sample_rate: u32Samples per second (e.g., 44100, 48000)
byte_rate: u32Bytes per second (sample_rate * block_align)
block_align: u16Block alignment (num_channels * bits_per_sample / 8)
bits_per_sample: u16Bits per sample (8, 16, 24, 32)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FmtChunk
impl RefUnwindSafe for FmtChunk
impl Send for FmtChunk
impl Sync for FmtChunk
impl Unpin for FmtChunk
impl UnwindSafe for FmtChunk
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)