pub struct CeltFrameConfig {
pub frame_size: usize,
pub channels: u8,
pub start_band: u8,
pub end_band: u8,
}Expand description
Configuration for a CELT frame decoder.
Fields§
§frame_size: usizeFrame size in samples (120, 240, 480, 960, or 1920).
channels: u8Number of audio channels (1 or 2).
start_band: u8First band index (for hybrid Opus mode).
end_band: u8One-past-last band index.
Implementations§
Source§impl CeltFrameConfig
impl CeltFrameConfig
Sourcepub fn with_frame_size(self, frame_size: usize) -> Self
pub fn with_frame_size(self, frame_size: usize) -> Self
Sets the frame size and returns self for chaining.
Sourcepub fn with_channels(self, channels: u8) -> Self
pub fn with_channels(self, channels: u8) -> Self
Sets the channel count and returns self for chaining.
Sourcepub fn with_start_band(self, start_band: u8) -> Self
pub fn with_start_band(self, start_band: u8) -> Self
Sets the start band and returns self for chaining.
Sourcepub fn with_end_band(self, end_band: u8) -> Self
pub fn with_end_band(self, end_band: u8) -> Self
Sets the end band and returns self for chaining.
Trait Implementations§
Source§impl Clone for CeltFrameConfig
impl Clone for CeltFrameConfig
Source§fn clone(&self) -> CeltFrameConfig
fn clone(&self) -> CeltFrameConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 CeltFrameConfig
impl Debug for CeltFrameConfig
Source§impl Default for CeltFrameConfig
impl Default for CeltFrameConfig
Source§impl PartialEq for CeltFrameConfig
impl PartialEq for CeltFrameConfig
impl Eq for CeltFrameConfig
impl StructuralPartialEq for CeltFrameConfig
Auto Trait Implementations§
impl Freeze for CeltFrameConfig
impl RefUnwindSafe for CeltFrameConfig
impl Send for CeltFrameConfig
impl Sync for CeltFrameConfig
impl Unpin for CeltFrameConfig
impl UnsafeUnpin for CeltFrameConfig
impl UnwindSafe for CeltFrameConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more