Mercurial > hg > vamp-plugin-sdk
comparison 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 |
comparison
equal
deleted
inserted
replaced
469:a75fdb8b368c | 470:af4a1522ef15 |
---|---|
458 } | 458 } |
459 | 459 |
460 Kiss::kiss_fftr(m_cfg, m_ri, m_cbuf); | 460 Kiss::kiss_fftr(m_cfg, m_ri, m_cbuf); |
461 | 461 |
462 for (int i = 0; i <= m_blockSize/2; ++i) { | 462 for (int i = 0; i <= m_blockSize/2; ++i) { |
463 m_freqbuf[c][i * 2] = m_cbuf[i].r; | 463 m_freqbuf[c][i * 2] = float(m_cbuf[i].r); |
464 m_freqbuf[c][i * 2 + 1] = m_cbuf[i].i; | 464 m_freqbuf[c][i * 2 + 1] = float(m_cbuf[i].i); |
465 } | 465 } |
466 } | 466 } |
467 | 467 |
468 return m_plugin->process(m_freqbuf, timestamp); | 468 return m_plugin->process(m_freqbuf, timestamp); |
469 } | 469 } |
507 } | 507 } |
508 | 508 |
509 Kiss::kiss_fftr(m_cfg, m_ri, m_cbuf); | 509 Kiss::kiss_fftr(m_cfg, m_ri, m_cbuf); |
510 | 510 |
511 for (int i = 0; i <= m_blockSize/2; ++i) { | 511 for (int i = 0; i <= m_blockSize/2; ++i) { |
512 m_freqbuf[c][i * 2] = m_cbuf[i].r; | 512 m_freqbuf[c][i * 2] = float(m_cbuf[i].r); |
513 m_freqbuf[c][i * 2 + 1] = m_cbuf[i].i; | 513 m_freqbuf[c][i * 2 + 1] = float(m_cbuf[i].i); |
514 } | 514 } |
515 } | 515 } |
516 | 516 |
517 ++m_processCount; | 517 ++m_processCount; |
518 | 518 |