diff options
| author | ozpv <39195175+ozpv@users.noreply.github.com> | 2026-05-16 16:39:26 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-05-16 16:39:26 -0500 |
| commit | 12ae71759075a98deed5728d972c50e7131c726f (patch) | |
| tree | 950c53e0952d43aaa250c09c91ae4e1867eae7b0 /src/window_function.rs | |
| parent | 31b83a1daf401e41a1c73484c0aec3016b795e3f (diff) | |
real time processing
Diffstat (limited to 'src/window_function.rs')
| -rw-r--r-- | src/window_function.rs | 18 |
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]) {} +} |
