1
0
Fork 0

Fix gain compensation in new STFT example

This commit is contained in:
Robbert van der Helm 2022-05-08 02:25:44 +02:00
parent 3fe24e7dc6
commit 6400e2d71d

View file

@ -13,7 +13,7 @@ const FILTER_WINDOW_SIZE: usize = 33;
const FFT_WINDOW_SIZE: usize = WINDOW_SIZE + FILTER_WINDOW_SIZE - 1; const FFT_WINDOW_SIZE: usize = WINDOW_SIZE + FILTER_WINDOW_SIZE - 1;
/// The gain compensation we need to apply for the STFT process. /// 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 { struct Stft {
params: Arc<StftParams>, params: Arc<StftParams>,