Trait compressor::even_gain_fn::EvenGainFunction
[−]
[src]
pub trait EvenGainFunction: Sized { fn next_gain<F, D>(
_: &mut Compressor<F, D, Self>,
frame: F
) -> <F::Sample as Sample>::Float
where
F: Frame,
D: Detector<F>; }
Some function that yields a gain to be applied evenly across all channels in a single frame.
Required Methods
fn next_gain<F, D>(
_: &mut Compressor<F, D, Self>,
frame: F
) -> <F::Sample as Sample>::Float where
F: Frame,
D: Detector<F>,
_: &mut Compressor<F, D, Self>,
frame: F
) -> <F::Sample as Sample>::Float where
F: Frame,
D: Detector<F>,
Yield the gain to be applied to each channel for the given frame of samples.