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:
Mike Walters
2015-07-23 18:05:38 +01:00
parent a0d4a066cd
commit c2018ba7ec

View File

@@ -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() {