Mercurial > hg > vamp-plugin-sdk
comparison 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 |
comparison
equal
deleted
inserted
replaced
420:99868cd95acb | 421:35fa4733bc5d |
---|---|
246 for (size_t j = 0; j < m_blockSize; ++j) { | 246 for (size_t j = 0; j < m_blockSize; ++j) { |
247 m_buffer[0][j] += inputBuffers[i][j]; | 247 m_buffer[0][j] += inputBuffers[i][j]; |
248 } | 248 } |
249 } | 249 } |
250 for (size_t j = 0; j < m_blockSize; ++j) { | 250 for (size_t j = 0; j < m_blockSize; ++j) { |
251 m_buffer[0][j] /= m_inputChannels; | 251 m_buffer[0][j] /= float(m_inputChannels); |
252 } | 252 } |
253 return m_plugin->process(m_buffer, timestamp); | 253 return m_plugin->process(m_buffer, timestamp); |
254 } else { | 254 } else { |
255 return m_plugin->process(inputBuffers, timestamp); | 255 return m_plugin->process(inputBuffers, timestamp); |
256 } | 256 } |