[−][src]Function audiopus::packet::nb_samples
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
.
Warning:
Empty packet
will return Error::EmptyPacket
.