Fix samples until next window calculation

This commit is contained in:
Robbert van der Helm
2022-03-06 14:48:41 +01:00
parent bf215ef88e
commit 592a908132
2 changed files with 6 additions and 2 deletions

View File

@@ -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),
}
}
}