packet_sample_count

Function packet_sample_count 

Source
pub fn packet_sample_count(
    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.