Mercurial > hg > piper-cpp
comparison vamp-support/AssignedPluginHandleMapper.h @ 91:c897c9a8daf1
Implement reset()
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Thu, 13 Oct 2016 11:33:19 +0100 |
parents | db9a6ab618bc |
children | 427c4c725085 |
comparison
equal
deleted
inserted
replaced
90:6429a99abcad | 91:c897c9a8daf1 |
---|---|
75 m_configuredPlugins.erase(h); | 75 m_configuredPlugins.erase(h); |
76 m_channelCounts.erase(h); | 76 m_channelCounts.erase(h); |
77 } | 77 } |
78 m_rplugins.erase(p); | 78 m_rplugins.erase(p); |
79 } | 79 } |
80 | |
81 bool havePlugin(Vamp::Plugin *p) { | |
82 return (m_rplugins.find(p) != m_rplugins.end()); | |
83 } | |
80 | 84 |
81 Handle pluginToHandle(Vamp::Plugin *p) const noexcept { | 85 Handle pluginToHandle(Vamp::Plugin *p) const noexcept { |
82 if (m_rplugins.find(p) == m_rplugins.end()) { | 86 if (m_rplugins.find(p) == m_rplugins.end()) { |
83 return INVALID_HANDLE; | 87 return INVALID_HANDLE; |
84 } | 88 } |