audiopus::packet

Function samples_per_frame

Source
pub fn samples_per_frame<'a, I>(
    packet: I,
    sample_rate: SampleRate,
) -> Result<usize>
where I: TryInto<Packet<'a>>,
Expand description

Gets number of samples per frame of an Opus packet.

Warning: Empty packet will return Error::EmptyPacket.