Struct vorbisfile::VorbisFile [-]  [+] [src]

pub struct VorbisFile<R> {
    // some fields omitted
}

Ogg Vorbis file decoder.

Methods

impl<R: Reader> VorbisFile<R>

fn new(src: R) -> OVResult<VorbisFile<R>>

Create a Ogg Vorbis decoder.

fn comment<'a>(&'a mut self, link: isize) -> Option<Comments<'a>>

Gets the comment struct for the specified bitstream.

For nonseekable streams, returns the comments for the current bitstream. Otherwise, specify bitstream -1 to get the current bitstream.

fn decode<'a>(&'a mut self) -> OVResult<&'a mut [&'a mut [f32]]>

Decode a block of samples.

The emitted values are a slice of channels, each containing an equal number of samples.

Trait Implementations

impl<R: Reader> Drop for VorbisFile<R>

fn drop(&mut self)