packet_nb_samples

Function packet_nb_samples 

Source
pub fn packet_nb_samples(
    packet: &[u8],
    sample_rate: SampleRate,
) -> Result<usize>
Expand description

Get total samples (per channel) in a packet at the given sample rate.

ยงErrors

Returns an error if the packet cannot be parsed.