Mercurial > hg > vamp-plugin-sdk
diff src/vamp-hostsdk/PluginChannelAdapter.cpp @ 421:35fa4733bc5d
Fix compiler warnings, and fix potential mangling of utf8 when downcasing (this is still a nasty and incomplete way to do it though)
author | Chris Cannam |
---|---|
date | Thu, 14 Apr 2016 11:49:12 +0100 |
parents | c97e70ed5abc |
children |
line wrap: on
line diff
--- a/src/vamp-hostsdk/PluginChannelAdapter.cpp Thu Apr 14 09:19:28 2016 +0100 +++ b/src/vamp-hostsdk/PluginChannelAdapter.cpp Thu Apr 14 11:49:12 2016 +0100 @@ -248,7 +248,7 @@ } } for (size_t j = 0; j < m_blockSize; ++j) { - m_buffer[0][j] /= m_inputChannels; + m_buffer[0][j] /= float(m_inputChannels); } return m_plugin->process(m_buffer, timestamp); } else {