diff vamp-sdk/hostext/PluginInputDomainAdapter.cpp @ 59:fa79c4ec847d host-factory-stuff

* Put hostext stuff in the HostExt sub-namespace * Tidy up system-specific stuff in PluginLoader * Make PluginLoader return a deletion-notifying wrapper which permits the library to be unloaded when no longer in use * Add PluginChannelAdapter * Make vamp-simple-host use PluginChannelAdapter, and use the PluginLoader for plugin-running task. Also some other enhancements to host
author cannam
date Thu, 24 May 2007 15:17:07 +0000
parents 0284955e31e5
children 087c16cca0d6
line wrap: on
line diff
--- a/vamp-sdk/hostext/PluginInputDomainAdapter.cpp	Thu May 24 10:05:00 2007 +0000
+++ b/vamp-sdk/hostext/PluginInputDomainAdapter.cpp	Thu May 24 15:17:07 2007 +0000
@@ -40,6 +40,8 @@
 
 namespace Vamp {
 
+namespace HostExt {
+
 PluginInputDomainAdapter::PluginInputDomainAdapter(Plugin *plugin) :
     PluginWrapper(plugin),
     m_channels(0),
@@ -55,7 +57,7 @@
 bool
 PluginInputDomainAdapter::initialise(size_t channels, size_t stepSize, size_t blockSize)
 {
-    //!!! complain and die if blocksize is not a power of 2
+    //!!! complain and adapt-or-die if blocksize is not a power of 2
 
     if (m_plugin->getInputDomain() == FrequencyDomain) {
         if (m_channels > 0) {
@@ -106,6 +108,8 @@
 size_t
 PluginInputDomainAdapter::getPreferredBlockSize() const
 {
+    //!!! complain and adapt-or-die if blocksize is not a power of 2
+
     size_t block = m_plugin->getPreferredBlockSize();
 
     if (block == 0 && (m_plugin->getInputDomain() == FrequencyDomain)) {
@@ -269,6 +273,7 @@
     }
 }
 
+}
         
 }