mirror of
https://github.com/cookiengineer/audacity
synced 2025-04-30 15:49:41 +02:00
Bug2557: crash changing spectrogram Algorithm to Pitch, zero pad > 1
This commit is contained in:
parent
8c1152e05c
commit
9b6fc0f152
@ -504,8 +504,9 @@ void SpectrogramSettings::CacheWindows() const
|
||||
if (hFFT == NULL || window == NULL) {
|
||||
|
||||
double scale;
|
||||
const auto fftLen = WindowSize() * ZeroPaddingFactor();
|
||||
const auto padding = (WindowSize() * (zeroPaddingFactor - 1)) / 2;
|
||||
auto factor = ZeroPaddingFactor();
|
||||
const auto fftLen = WindowSize() * factor;
|
||||
const auto padding = (WindowSize() * (factor - 1)) / 2;
|
||||
|
||||
hFFT = GetFFT(fftLen);
|
||||
RecreateWindow(window, WINDOW, fftLen, padding, windowType, windowSize, scale);
|
||||
|
Loading…
x
Reference in New Issue
Block a user