pub enum SilkBandwidth {
Nb,
Mb,
Wb,
}Expand description
Audio bandwidth at which the SILK layer of a SILK-bearing Opus frame runs internally.
Per RFC 6716 §4.2, the SILK layer only runs at NB, MB, or WB — even when the Opus frame’s TOC bandwidth is SWB or FB (Hybrid mode), the LP layer itself is pinned to WB and the CELT layer covers the higher frequencies.
Variants§
Implementations§
Source§impl SilkBandwidth
impl SilkBandwidth
Sourcepub fn to_bandwidth(self) -> Bandwidth
pub fn to_bandwidth(self) -> Bandwidth
Convert to the crate-wide Bandwidth enum, suitable for
passing into the per-stage SILK decoders that already key
off Bandwidth::{Nb, Mb, Wb}.
Trait Implementations§
Source§impl Clone for SilkBandwidth
impl Clone for SilkBandwidth
Source§fn clone(&self) -> SilkBandwidth
fn clone(&self) -> SilkBandwidth
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 moreimpl Copy for SilkBandwidth
Source§impl Debug for SilkBandwidth
impl Debug for SilkBandwidth
impl Eq for SilkBandwidth
Source§impl PartialEq for SilkBandwidth
impl PartialEq for SilkBandwidth
Source§fn eq(&self, other: &SilkBandwidth) -> bool
fn eq(&self, other: &SilkBandwidth) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SilkBandwidth
Auto Trait Implementations§
impl Freeze for SilkBandwidth
impl RefUnwindSafe for SilkBandwidth
impl Send for SilkBandwidth
impl Sync for SilkBandwidth
impl Unpin for SilkBandwidth
impl UnsafeUnpin for SilkBandwidth
impl UnwindSafe for SilkBandwidth
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