Mercurial > hg > svapp
changeset 457:3485d324c172
Tidy dense time-value model API a bit; add first simple unit test for FFT model
author | Chris Cannam |
---|---|
date | Wed, 10 Jun 2015 17:06:02 +0100 |
parents | 8125b8cb8128 |
children | ea30a8c4cb93 83370e830c95 ad998a2fe9e2 |
files | audioio/AudioGenerator.cpp |
diffstat | 1 files changed, 8 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/audioio/AudioGenerator.cpp Wed Jun 10 13:13:22 2015 +0100 +++ b/audioio/AudioGenerator.cpp Wed Jun 10 17:06:02 2015 +0100 @@ -439,10 +439,10 @@ sv_frame_t got = 0; if (startFrame >= fadeIn/2) { - got = dtvm->getData(0, modelChannels - 1, - startFrame - fadeIn/2, - frames + fadeOut/2 + fadeIn/2, - m_channelBuffer); + got = dtvm->getMultiChannelData(0, modelChannels - 1, + startFrame - fadeIn/2, + frames + fadeOut/2 + fadeIn/2, + m_channelBuffer); } else { sv_frame_t missing = fadeIn/2 - startFrame; @@ -457,10 +457,10 @@ << ", missing = " << missing << endl; } - got = dtvm->getData(0, modelChannels - 1, - startFrame, - frames + fadeOut/2, - m_channelBuffer); + got = dtvm->getMultiChannelData(0, modelChannels - 1, + startFrame, + frames + fadeOut/2, + m_channelBuffer); for (int c = 0; c < modelChannels; ++c) { m_channelBuffer[c] -= missing;