[][src]Function lewton::audio::get_decoded_sample_count

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

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.