# HG changeset patch # User cannam # Date 1147261480 0 # Node ID c29eccb892f1f5fff10f298143d69a1a5439d675 # Parent abd05f5eee2f5b63c3348f68aac6034a3b5a9d87 * Add forgotten getMin/MaxChannelCount to host adapter (thanks Craig) diff -r abd05f5eee2f -r c29eccb892f1 vamp-sdk/PluginHostAdapter.cpp --- 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 { diff -r abd05f5eee2f -r c29eccb892f1 vamp-sdk/PluginHostAdapter.h --- 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);