summaryrefslogtreecommitdiff
path: root/src/window_function.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/window_function.rs')
-rw-r--r--src/window_function.rs18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/window_function.rs b/src/window_function.rs
new file mode 100644
index 0000000..a633af1
--- /dev/null
+++ b/src/window_function.rs
@@ -0,0 +1,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]) {}
+}