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

Trait Implementations

impl Clone for Packet
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Packet
[src]

Formats the value using the given formatter.