pub struct SilkDecoder {
pub channel_state: [SilkDecoderState; 2],
pub n_channels_api: i32,
pub n_channels_internal: i32,
pub prev_decode_only_middle: i32,
}Fields§
§channel_state: [SilkDecoderState; 2]§n_channels_api: i32§n_channels_internal: i32§prev_decode_only_middle: i32Implementations§
Source§impl SilkDecoder
impl SilkDecoder
pub fn new() -> Self
pub fn init(&mut self, sample_rate_hz: i32, channels: i32) -> i32
pub fn decode( &mut self, range_dec: &mut RangeCoder, output: &mut [i16], lost_flag: i32, new_packet: bool, payload_size_ms: i32, internal_sample_rate: i32, ) -> i32
pub fn decode_bytes( &mut self, data: &[u8], output: &mut [i16], new_packet: bool, ) -> i32
pub fn reset(&mut self)
pub fn frame_length(&self) -> i32
pub fn sample_rate(&self) -> i32
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SilkDecoder
impl RefUnwindSafe for SilkDecoder
impl Send for SilkDecoder
impl Sync for SilkDecoder
impl Unpin for SilkDecoder
impl UnsafeUnpin for SilkDecoder
impl UnwindSafe for SilkDecoder
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