pub fn samples_per_frame<'a, I>( packet: I, sample_rate: SampleRate, ) -> Result<usize>where I: TryInto<Packet<'a>>,
Gets number of samples per frame of an Opus packet.
packet
Warning: Empty packet will return Error::EmptyPacket.
Error::EmptyPacket