summaryrefslogtreecommitdiff
path: root/src/window_function.rs
blob: a633af10360ce56237cd7704e64de7a958cf5adf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
pub trait WindowFunction: Send {
    fn apply(&self, data: &mut [f32]);
    fn reverse(&self, data: &mut [f32]);
}

pub struct RectangularWindow {}

impl RectangularWindow {
    pub fn new(_fft_size: usize) -> Self {
        Self {}
    }
}

impl WindowFunction for RectangularWindow {
    fn apply(&self, _data: &mut [f32]) {}

    fn reverse(&self, _data: &mut [f32]) {}
}