lewton::audio

Function get_decoded_sample_count

Source
pub fn get_decoded_sample_count(
    ident: &IdentHeader,
    setup: &SetupHeader,
    packet: &[u8],
) -> Result<usize, AudioReadError>
Expand description

Returns the per-channel sample count of a packet if it were decoded.

This operation is very cheap and doesn’t involve actual decoding of the packet.