Fix gain compensation in new STFT example
This commit is contained in:
parent
3fe24e7dc6
commit
6400e2d71d
|
@ -13,7 +13,7 @@ const FILTER_WINDOW_SIZE: usize = 33;
|
|||
const FFT_WINDOW_SIZE: usize = WINDOW_SIZE + FILTER_WINDOW_SIZE - 1;
|
||||
|
||||
/// The gain compensation we need to apply for the STFT process.
|
||||
const GAIN_COMPENSATION: f32 = 1.0 / WINDOW_SIZE as f32;
|
||||
const GAIN_COMPENSATION: f32 = 1.0 / FFT_WINDOW_SIZE as f32;
|
||||
|
||||
struct Stft {
|
||||
params: Arc<StftParams>,
|
||||
|
|
Loading…
Reference in a new issue