rustriff_lib/domain/audio_processor.rs
1pub trait AudioProcessor: Send {
2 /// Processes a single audio sample and returns the processed result.
3 ///
4 /// # Arguments
5 ///
6 /// * `sample` - A normalized `f32` audio sample (typically -1.0 to 1.0).
7 ///
8 /// # Returns
9 ///
10 /// The processed audio sample.
11 fn process(&mut self, sample: f32) -> f32;
12}