diff vamp-sdk/PluginHostAdapter.cpp @ 26:c29eccb892f1

* Add forgotten getMin/MaxChannelCount to host adapter (thanks Craig)
author cannam
date Wed, 10 May 2006 11:44:40 +0000
parents 6c5466fbea90
children 13eae6cc6bac
line wrap: on
line diff
--- a/vamp-sdk/PluginHostAdapter.cpp	Mon May 08 13:52:10 2006 +0000
+++ b/vamp-sdk/PluginHostAdapter.cpp	Wed May 10 11:44:40 2006 +0000
@@ -215,6 +215,20 @@
     return m_descriptor->getPreferredBlockSize(m_handle);
 }
 
+size_t
+PluginHostAdapter::getMinChannelCount() const
+{
+    if (!m_handle) return 0;
+    return m_descriptor->getMinChannelCount(m_handle);
+}
+
+size_t
+PluginHostAdapter::getMaxChannelCount() const
+{
+    if (!m_handle) return 0;
+    return m_descriptor->getMaxChannelCount(m_handle);
+}
+
 PluginHostAdapter::OutputList
 PluginHostAdapter::getOutputDescriptors() const
 {