pub struct FecRecovered {
pub pcm: Vec<i16>,
pub channels: u8,
pub sample_rate_hz: u32,
pub status: FecDecodeStatus,
}Expand description
The result of an in-band FEC recovery for one lost packet
(OpusDecoder::decode_packet_fec).
Fields§
§pcm: Vec<i16>Interleaved signed 16-bit PCM at 48 kHz, same layout as
DecodedAudio::pcm. Length is samples_per_channel * channels.
channels: u8Number of audio channels (1 for mono, 2 for stereo).
sample_rate_hz: u32Output sample rate in Hz (always OUTPUT_SAMPLE_RATE_HZ).
status: FecDecodeStatusWhy the samples were produced (real recovery vs silence and why).
Trait Implementations§
Source§impl Clone for FecRecovered
impl Clone for FecRecovered
Source§fn clone(&self) -> FecRecovered
fn clone(&self) -> FecRecovered
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FecRecovered
impl Debug for FecRecovered
Source§impl PartialEq for FecRecovered
impl PartialEq for FecRecovered
Source§fn eq(&self, other: &FecRecovered) -> bool
fn eq(&self, other: &FecRecovered) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FecRecovered
Auto Trait Implementations§
impl Freeze for FecRecovered
impl RefUnwindSafe for FecRecovered
impl Send for FecRecovered
impl Sync for FecRecovered
impl Unpin for FecRecovered
impl UnsafeUnpin for FecRecovered
impl UnwindSafe for FecRecovered
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