diff 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
line wrap: on
line diff
--- a/src/vamp-hostsdk/PluginInputDomainAdapter.cpp	Fri Sep 12 16:50:21 2014 +0100
+++ b/src/vamp-hostsdk/PluginInputDomainAdapter.cpp	Thu Oct 16 10:50:12 2014 +0100
@@ -292,10 +292,12 @@
         return false;
     }                
         
+#ifndef HAVE_FFTW3
     if (blockSize & (blockSize-1)) {
         std::cerr << "ERROR: PluginInputDomainAdapter::initialise: non-power-of-two\nblocksize " << blockSize << " not supported" << std::endl;
         return false;
     }
+#endif
 
     if (m_channels > 0) {
         for (int c = 0; c < m_channels; ++c) {