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.
pub fn packet_samples_per_frame(
packet: &[u8],
sample_rate: SampleRate,
) -> Result<usize>Get the number of samples per frame for a packet at a given sample rate.
Returns Error::BadArg if packet is empty.