mirror of
https://github.com/robbert-vdh/nih-plug.git
synced 2026-07-01 02:36:54 +00:00
Fix samples until next window calculation
This commit is contained in:
@@ -7,6 +7,7 @@ struct Stft {
|
||||
params: Pin<Box<StftParams>>,
|
||||
|
||||
stft: util::StftHelper,
|
||||
window_function: Vec<f32>,
|
||||
}
|
||||
|
||||
#[derive(Params)]
|
||||
@@ -18,6 +19,7 @@ impl Default for Stft {
|
||||
params: Box::pin(StftParams::default()),
|
||||
|
||||
stft: util::StftHelper::new(2, WINDOW_SIZE),
|
||||
window_function: util::window::hann(WINDOW_SIZE),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user