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