comparison audioio/AudioGenerator.cpp @ 461:1020db1698c0 simple-fft-model

Fix typo
author Chris Cannam
date Mon, 15 Jun 2015 14:35:27 +0100
parents 49c89950b06d
children
comparison
equal deleted inserted replaced
460:49c89950b06d 461:1020db1698c0
446 446
447 for (int c = 0; c < modelChannels; ++c) { 447 for (int c = 0; c < modelChannels; ++c) {
448 copy(data[c].begin(), data[c].end(), m_channelBuffer[c]); 448 copy(data[c].begin(), data[c].end(), m_channelBuffer[c]);
449 } 449 }
450 450
451 got = data.size(); 451 got = data[0].size();
452 452
453 } else { 453 } else {
454 sv_frame_t missing = fadeIn/2 - startFrame; 454 sv_frame_t missing = fadeIn/2 - startFrame;
455 455
456 if (missing > 0) { 456 if (missing > 0) {
465 frames + fadeOut/2); 465 frames + fadeOut/2);
466 for (int c = 0; c < modelChannels; ++c) { 466 for (int c = 0; c < modelChannels; ++c) {
467 copy(data[c].begin(), data[c].end(), m_channelBuffer[c] + missing); 467 copy(data[c].begin(), data[c].end(), m_channelBuffer[c] + missing);
468 } 468 }
469 469
470 got = data.size() + missing; 470 got = data[0].size() + missing;
471 } 471 }
472 472
473 for (int c = 0; c < m_targetChannelCount; ++c) { 473 for (int c = 0; c < m_targetChannelCount; ++c) {
474 474
475 int sourceChannel = (c % modelChannels); 475 int sourceChannel = (c % modelChannels);