pub struct VorbisRefDecoder { /* private fields */ }
Implementations§
Source§impl VorbisRefDecoder
impl VorbisRefDecoder
pub fn new() -> Self
pub fn decode_header(&mut self, packet: &mut ogg_packet) -> Result<()>
pub fn decode(&mut self, packet: &mut ogg_packet) -> Result<()>
pub fn channel_count(&self) -> usize
pub fn pcm(&self, channel: usize) -> &[f32]
pub fn pcm_len(&self) -> usize
pub fn comment_vendor(&self) -> Option<&str>
pub fn comment_count(&self) -> usize
pub fn comment(&self, index: usize) -> Option<&str>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for VorbisRefDecoder
impl RefUnwindSafe for VorbisRefDecoder
impl !Send for VorbisRefDecoder
impl !Sync for VorbisRefDecoder
impl Unpin for VorbisRefDecoder
impl UnwindSafe for VorbisRefDecoder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more