changeset 26:c29eccb892f1

* Add forgotten getMin/MaxChannelCount to host adapter (thanks Craig)
author cannam
date Wed, 10 May 2006 11:44:40 +0000
parents abd05f5eee2f
children 44ec6c633113
files vamp-sdk/PluginHostAdapter.cpp vamp-sdk/PluginHostAdapter.h
diffstat 2 files changed, 17 insertions(+), 0 deletions(-) [+]
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
 {
--- a/vamp-sdk/PluginHostAdapter.h	Mon May 08 13:52:10 2006 +0000
+++ b/vamp-sdk/PluginHostAdapter.h	Wed May 10 11:44:40 2006 +0000
@@ -72,6 +72,9 @@
     size_t getPreferredStepSize() const;
     size_t getPreferredBlockSize() const;
 
+    size_t getMinChannelCount() const;
+    size_t getMaxChannelCount() const;
+
     OutputList getOutputDescriptors() const;
 
     FeatureSet process(float **inputBuffers, RealTime timestamp);