pub struct NativeVorbisDecoder { /* private fields */ }Expand description
A native, pure-Rust Vorbis decoder for streams of one to eight channels,
producing interleaved f32 PCM in the Vorbis channel order (Vorbis I
section 4.3.9).
A packet decoded straight after AudioDecoder::reset has no previous
block to overlap and decodes to silence; VORBIS_PREROLL_PACKETS is the
preroll that keeps an crate::AudioSampleReader from returning it.
Implementations§
Source§impl NativeVorbisDecoder
impl NativeVorbisDecoder
pub fn new(config: &VorbisConfig, limits: Limits) -> Result<Self>
Trait Implementations§
Source§impl AudioDecoder for NativeVorbisDecoder
impl AudioDecoder for NativeVorbisDecoder
fn decode( &mut self, sample: &EncodedAudioSample, cancellation: &CancellationToken, ) -> Result<AudioBuffer>
fn reset(&mut self) -> Result<()>
Auto Trait Implementations§
impl !RefUnwindSafe for NativeVorbisDecoder
impl !UnwindSafe for NativeVorbisDecoder
impl Freeze for NativeVorbisDecoder
impl Send for NativeVorbisDecoder
impl Sync for NativeVorbisDecoder
impl Unpin for NativeVorbisDecoder
impl UnsafeUnpin for NativeVorbisDecoder
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