1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-26 23:33:49 +01:00

Define and use SpectrogramSettings::GetFFTLength()

This commit is contained in:
Paul Licameli
2015-06-20 12:39:14 -04:00
parent 778e7726df
commit a1621f7d1b
3 changed files with 12 additions and 1 deletions

View File

@@ -253,3 +253,12 @@ void SpectrogramSettings::CacheWindows() const
}
#endif // EXPERIMENTAL_USE_REALFFTF
}
int SpectrogramSettings::GetFFTLength(bool autocorrelation) const
{
return windowSize
#ifdef EXPERIMENTAL_ZERO_PADDED_SPECTROGRAMS
* (!autocorrelation ? zeroPaddingFactor : 1);
#endif
;
}