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