Struct vorbis::Packet
[−]
[src]
pub struct Packet { pub data: Vec<i16>, pub channels: u16, pub rate: u64, pub bitrate_upper: u64, pub bitrate_nominal: u64, pub bitrate_lower: u64, pub bitrate_window: u64, }
Packet of data.
Each sample is an i16
ranging from I16_MIN to I16_MAX.
The channels are interleaved in the data. For example if you have two channels, you will get a sample from channel 1, then a sample from channel 2, than a sample from channel 1, etc.
Fields
data: Vec<i16>
channels: u16
rate: u64
bitrate_upper: u64
bitrate_nominal: u64
bitrate_lower: u64
bitrate_window: u64
Trait Implementations
impl Clone for Packet
[src]
fn clone(&self) -> Packet
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more