[−][src]Struct opus::SoftClip
Soft-clipping to bring a float signal within the [-1,1] range.
Implementations
impl SoftClip
[src]
pub fn new(channels: Channels) -> SoftClip
[src]
Initialize a new soft-clipping state.
pub fn apply(&mut self, signal: &mut [f32])
[src]
Apply soft-clipping to a float signal.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for SoftClip
impl Send for SoftClip
impl Sync for SoftClip
impl Unpin for SoftClip
impl UnwindSafe for SoftClip
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,