Skip to main content

PCMBufferDescriptor

Type Alias PCMBufferDescriptor 

pub type PCMBufferDescriptor<'a> = PCMAudioSheet<'a>;
Expand description

Alias for PCMAudioSheet when referred to as a buffer descriptor.

Aliased Type§

pub struct PCMBufferDescriptor<'a> {
    pub pcm_data: &'a [u8],
    pub sample_rate: u32,
    pub bit_depth: u8,
    pub channels: u8,
}

Fields§

§pcm_data: &'a [u8]

Raw PCM byte data reference (zero-copy)

§sample_rate: u32

Sample rate in Hz (e.g., 48000 for DCI standard)

§bit_depth: u8

Bit depth (e.g., 24 for DCI standard)

§channels: u8

Number of channels (e.g., 6 for 5.1 surround)