comparison src/vamp-hostsdk/PluginInputDomainAdapter.cpp @ 384:364e4653fe20

Non-power-of-two is not an issue if we're built with fftw
author Chris Cannam
date Thu, 16 Oct 2014 10:50:12 +0100
parents 92b1fbb1cc87
children e0697515163f
comparison
equal deleted inserted replaced
383:654a7e9839f6 384:364e4653fe20
290 if (blockSize < 2) { 290 if (blockSize < 2) {
291 std::cerr << "ERROR: PluginInputDomainAdapter::initialise: blocksize < 2 not supported" << std::endl; 291 std::cerr << "ERROR: PluginInputDomainAdapter::initialise: blocksize < 2 not supported" << std::endl;
292 return false; 292 return false;
293 } 293 }
294 294
295 #ifndef HAVE_FFTW3
295 if (blockSize & (blockSize-1)) { 296 if (blockSize & (blockSize-1)) {
296 std::cerr << "ERROR: PluginInputDomainAdapter::initialise: non-power-of-two\nblocksize " << blockSize << " not supported" << std::endl; 297 std::cerr << "ERROR: PluginInputDomainAdapter::initialise: non-power-of-two\nblocksize " << blockSize << " not supported" << std::endl;
297 return false; 298 return false;
298 } 299 }
300 #endif
299 301
300 if (m_channels > 0) { 302 if (m_channels > 0) {
301 for (int c = 0; c < m_channels; ++c) { 303 for (int c = 0; c < m_channels; ++c) {
302 delete[] m_freqbuf[c]; 304 delete[] m_freqbuf[c];
303 } 305 }