From 12ae71759075a98deed5728d972c50e7131c726f Mon Sep 17 00:00:00 2001 From: ozpv <39195175+ozpv@users.noreply.github.com> Date: Sat, 16 May 2026 16:39:26 -0500 Subject: real time processing --- src/window_function.rs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/window_function.rs (limited to 'src/window_function.rs') 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]) {} +} -- cgit v1.2.3