comparison data/model/FFTModel.cpp @ 1680:c9a15ee5dc1d single-point

Fix error message which says the opposite of the truth
author Chris Cannam
date Fri, 29 Mar 2019 19:16:11 +0000
parents 70e172e6cc59
children e73baeead27f
comparison
equal deleted inserted replaced
1679:0d89abd631ac 1680:c9a15ee5dc1d
53 m_cached.push_back({ -1, cvec(m_fftSize / 2 + 1) }); 53 m_cached.push_back({ -1, cvec(m_fftSize / 2 + 1) });
54 } 54 }
55 55
56 if (m_windowSize > m_fftSize) { 56 if (m_windowSize > m_fftSize) {
57 SVCERR << "ERROR: FFTModel::FFTModel: window size (" << m_windowSize 57 SVCERR << "ERROR: FFTModel::FFTModel: window size (" << m_windowSize
58 << ") must be at least FFT size (" << m_fftSize << ")" << endl; 58 << ") may not exceed FFT size (" << m_fftSize << ")" << endl;
59 throw invalid_argument("FFTModel window size must be at least FFT size"); 59 throw invalid_argument("FFTModel window size may not exceed FFT size");
60 } 60 }
61 61
62 m_fft.initFloat(); 62 m_fft.initFloat();
63 63
64 connect(model, SIGNAL(modelChanged()), this, SIGNAL(modelChanged())); 64 connect(model, SIGNAL(modelChanged()), this, SIGNAL(modelChanged()));