mirror of
https://github.com/miek/inspectrum.git
synced 2026-03-06 08:24:29 +01:00
Don't force height to be a multiple of FFT stride
This was the wrong fix for an earlier bug that ended up sticking around Fixes #19
This commit is contained in:
@@ -70,9 +70,7 @@ void InputSource::getViewport(float *dest, int x, int y, int width, int height,
|
||||
}
|
||||
|
||||
int InputSource::getHeight() {
|
||||
int lines = m_file_size / sizeof(fftwf_complex) / getFFTStride();
|
||||
// Force height to be a multiple of overlap size
|
||||
return (lines / getFFTStride()) * getFFTStride();
|
||||
return m_file_size / sizeof(fftwf_complex) / getFFTStride();
|
||||
}
|
||||
|
||||
int InputSource::getWidth() {
|
||||
|
||||
Reference in New Issue
Block a user