Trait spectrusty::audio::MulNorm
source · pub trait MulNorm {
fn saturating_add(self, other: Self) -> Self;
fn mul_norm(self, other: Self) -> Self;
}
Expand description
This trait is being used for scaling sample amplitudes.
Required Methods§
sourcefn saturating_add(self, other: Self) -> Self
fn saturating_add(self, other: Self) -> Self
Saturating addition. Computes self + other, saturating at the normalized bounds instead of overflowing.
Float samples operates in range: [-1.0, 1.0], integer: [min, max]