pub enum BlockSize {
Long,
Short,
Start,
Stop,
}Expand description
MDCT block sizes
Variants§
Long
Long block (2048 samples) - good frequency resolution for stationary signals
Short
Short block (256 samples) - good time resolution for transients
Start
Start block - transition from long to short
Stop
Stop block - transition from short to long
Implementations§
Source§impl BlockSize
impl BlockSize
Sourcepub fn coefficients(self) -> usize
pub fn coefficients(self) -> usize
Get the number of MDCT coefficients for the underlying window (N/2)
Sourcepub fn frame_input_size(self) -> usize
pub fn frame_input_size(self) -> usize
Get the number of input samples analyzed per frame.
Sourcepub fn frame_coefficients(self) -> usize
pub fn frame_coefficients(self) -> usize
Get the number of MDCT coefficients serialized per frame
Sourcepub fn is_short_group(self) -> bool
pub fn is_short_group(self) -> bool
Whether this block type represents a group of short windows
Trait Implementations§
impl Copy for BlockSize
impl Eq for BlockSize
impl StructuralPartialEq for BlockSize
Auto Trait Implementations§
impl Freeze for BlockSize
impl RefUnwindSafe for BlockSize
impl Send for BlockSize
impl Sync for BlockSize
impl Unpin for BlockSize
impl UnsafeUnpin for BlockSize
impl UnwindSafe for BlockSize
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