packet_samples_per_frame

Function packet_samples_per_frame 

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

Get the number of samples per frame for a packet at a given sample rate.

ยงErrors

Returns Error::BadArg if packet is empty.