Mercurial > hg > vamp-plugin-sdk
diff src/vamp-hostsdk/PluginInputDomainAdapter.cpp @ 470:af4a1522ef15
Fix compiler warnings
author | Chris Cannam |
---|---|
date | Thu, 20 Oct 2016 14:05:05 +0100 |
parents | 7f7a10bcaff1 |
children | 90571dcc371a |
line wrap: on
line diff
--- a/src/vamp-hostsdk/PluginInputDomainAdapter.cpp Fri Oct 14 17:00:34 2016 +0100 +++ b/src/vamp-hostsdk/PluginInputDomainAdapter.cpp Thu Oct 20 14:05:05 2016 +0100 @@ -460,8 +460,8 @@ Kiss::kiss_fftr(m_cfg, m_ri, m_cbuf); for (int i = 0; i <= m_blockSize/2; ++i) { - m_freqbuf[c][i * 2] = m_cbuf[i].r; - m_freqbuf[c][i * 2 + 1] = m_cbuf[i].i; + m_freqbuf[c][i * 2] = float(m_cbuf[i].r); + m_freqbuf[c][i * 2 + 1] = float(m_cbuf[i].i); } } @@ -509,8 +509,8 @@ Kiss::kiss_fftr(m_cfg, m_ri, m_cbuf); for (int i = 0; i <= m_blockSize/2; ++i) { - m_freqbuf[c][i * 2] = m_cbuf[i].r; - m_freqbuf[c][i * 2 + 1] = m_cbuf[i].i; + m_freqbuf[c][i * 2] = float(m_cbuf[i].r); + m_freqbuf[c][i * 2 + 1] = float(m_cbuf[i].i); } }