comparison audioio/AudioGenerator.cpp @ 315:65b75e23bbd5 tonioni

interpolation, longer crossfades
author Chris Cannam
date Wed, 08 Jan 2014 13:41:57 +0000
parents 817ad10f91d1
children 5c69d40a0e30
comparison
equal deleted inserted replaced
314:817ad10f91d1 315:65b75e23bbd5
36 36
37 #include <QDir> 37 #include <QDir>
38 #include <QFile> 38 #include <QFile>
39 39
40 const size_t 40 const size_t
41 AudioGenerator::m_processingBlockSize = 2048; 41 AudioGenerator::m_processingBlockSize = 1024;
42 42
43 QString 43 QString
44 AudioGenerator::m_sampleDir = ""; 44 AudioGenerator::m_sampleDir = "";
45 45
46 //#define DEBUG_AUDIO_GENERATOR 1 46 //#define DEBUG_AUDIO_GENERATOR 1
650 nextPoints.begin()->frame > reqStart + 2 * stvm->getResolution()) { 650 nextPoints.begin()->frame > reqStart + 2 * stvm->getResolution()) {
651 f0 = -1.f; 651 f0 = -1.f;
652 } 652 }
653 } 653 }
654 654
655 cerr << "f0 = " << f0 << endl; 655 // cerr << "f0 = " << f0 << endl;
656 656
657 synth->mix(bufferIndexes, 657 synth->mix(bufferIndexes,
658 gain, 658 gain,
659 pan, 659 pan,
660 f0); 660 f0);