pub struct CeltDecoder { /* private fields */ }Implementations§
Source§impl CeltDecoder
impl CeltDecoder
Sourcepub fn new(mode: &'static CeltMode, channels: usize, sampling_rate: i32) -> Self
pub fn new(mode: &'static CeltMode, channels: usize, sampling_rate: i32) -> Self
Create a CELT decoder. sampling_rate is the API sampling rate
(8000–48000); the decoder always operates at 48 kHz internally and
decimates by resampling_factor(sampling_rate) on output.
pub fn decode( &mut self, compressed: &[u8], frame_size: usize, pcm: &mut [f32], ) -> usize
Sourcepub fn reset_state(&mut self)
pub fn reset_state(&mut self)
Reset all decoder state (equivalent to libopus OPUS_RESET_STATE).
Used at SILK↔CELT mode transitions to avoid cross-mode artifacts.
pub fn decode_with_start_band( &mut self, compressed: &[u8], frame_size: usize, pcm: &mut [f32], start_band: usize, ) -> usize
pub fn decode_from_range_coder( &mut self, rc: &mut RangeCoder, total_bits: i32, frame_size: usize, pcm: &mut [f32], start_band: usize, ) -> usize
pub fn decode_from_range_coder_with_band_range( &mut self, rc: &mut RangeCoder, total_bits: i32, frame_size: usize, pcm: &mut [f32], start_band: usize, end_band: usize, ) -> usize
Auto Trait Implementations§
impl Freeze for CeltDecoder
impl RefUnwindSafe for CeltDecoder
impl Send for CeltDecoder
impl Sync for CeltDecoder
impl Unpin for CeltDecoder
impl UnsafeUnpin for CeltDecoder
impl UnwindSafe for CeltDecoder
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