Mercurial > hg > svcore
diff plugin/LADSPAPluginInstance.cpp @ 259:dc46851837d6
* Fix many compile warnings, remove some debug output
author | Chris Cannam |
---|---|
date | Mon, 30 Apr 2007 13:36:23 +0000 |
parents | 2f7d27648806 |
children | ca3b91119482 |
line wrap: on
line diff
--- a/plugin/LADSPAPluginInstance.cpp Mon Apr 30 09:07:42 2007 +0000 +++ b/plugin/LADSPAPluginInstance.cpp Mon Apr 30 13:36:23 2007 +0000 @@ -30,6 +30,8 @@ //#define DEBUG_LADSPA 1 +#include <cmath> + LADSPAPluginInstance::LADSPAPluginInstance(RealTimePluginFactory *factory, int clientId, @@ -153,9 +155,9 @@ if (defaults) { if (defaults->count > 0) { std::map<int, std::string> values; - int v = 0; + size_t v = 0; for (size_t i = 0; i < defaults->count; ++i) { - v = defaults->items[i].value; + v = size_t(lrintf(fabsf(defaults->items[i].value))); values[v] = defaults->items[i].label; } for (size_t i = 0; i <= v; ++i) { @@ -291,8 +293,8 @@ { if (m_latencyPort) { if (!m_run) { - for (int i = 0; i < getAudioInputCount(); ++i) { - for (int j = 0; j < m_blockSize; ++j) { + for (size_t i = 0; i < getAudioInputCount(); ++i) { + for (size_t j = 0; j < m_blockSize; ++j) { m_inputBuffers[i][j] = 0.f; } } @@ -518,8 +520,6 @@ { if (!m_descriptor || !m_descriptor->run) return; - int inbuf = 0, outbuf = 0; - for (std::vector<LADSPA_Handle>::iterator hi = m_instanceHandles.begin(); hi != m_instanceHandles.end(); ++hi) {