Struct vorbisfile::VorbisFile
[−]
[src]
pub struct VorbisFile<R: Read> { /* fields omitted */ }
Ogg Vorbis file decoder.
Methods
impl<R: Read> VorbisFile<R>
[src]
pub fn new(src: R) -> OVResult<VorbisFile<R>>
[src]
Create a Ogg Vorbis decoder.
pub fn comment<'a>(&'a mut self, link: isize) -> Option<Comments<'a>>
[src]
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.
pub fn decode<'a>(&'a mut self) -> OVResult<&'a mut [&'a mut [f32]]>
[src]
Decode a block of samples.
The emitted values are a slice of channels, each containing an equal number of samples.