summaryrefslogtreecommitdiff
path: root/src/windowed_fft.rs
diff options
context:
space:
mode:
authorozpv <39195175+ozpv@users.noreply.github.com>2026-06-22 04:26:18 +0000
committerGitHub <noreply@github.com>2026-06-22 04:26:18 +0000
commitb9604f08d2a329cc810ab62706f598d5fcc0da7d (patch)
treef68fbcdd3ece7588a464887aa3a501b2bb1e3e58 /src/windowed_fft.rs
parent6ca86f2c3f8bb4531aa623927765f4e676fe46ae (diff)
Fix duplicating the plugin instancemain
Diffstat (limited to 'src/windowed_fft.rs')
-rw-r--r--src/windowed_fft.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/windowed_fft.rs b/src/windowed_fft.rs
index b3a6bfa..0f1fae8 100644
--- a/src/windowed_fft.rs
+++ b/src/windowed_fft.rs
@@ -22,8 +22,8 @@ pub struct WindowedRealFft {
}
impl WindowedRealFft {
- // clippy is very wrong here and passing window_size by ref will result in errors
- #[allow(clippy::needless_pass_by_value)]
+ // clippy is very wrong here and passing window_size by ref will result in errors
+ #[allow(clippy::needless_pass_by_value)]
pub fn new(window_size: WindowSize) -> Self {
let window_function = DEFAULT_WINDOW_TYPE.new_function(&window_size);
let window_size = window_size.inner();
@@ -38,7 +38,7 @@ impl WindowedRealFft {
let spectrum = vec![Complex::ZERO; (window_size / 2) + 1];
// scratches should theoretically be the same length for forward and inverse operations
- // So I reuse it on to save on allocations
+ // So I reuse it on to save on allocations
let scratch = forward.make_scratch_vec();
Self {
@@ -63,8 +63,8 @@ impl WindowedRealFft {
self.window_function = window_function;
}
- // clippy is very wrong here and passing window_size by ref will result in errors
- #[allow(clippy::needless_pass_by_value)]
+ // clippy is very wrong here and passing window_size by ref will result in errors
+ #[allow(clippy::needless_pass_by_value)]
pub fn window_size(&mut self, window_size: WindowSize) {
if window_size == self.window_size.into() {
return;