X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=testingArea%2FaudioOffset.cpp;h=f71b105231abff9bf53893809ab33cd9e3d836c2;hb=56aee6aedeeed3efd10ada8fe3c229eddc01ef05;hp=fd2e9c3b2044d347d2db3945c6cf97b3b25f9bdd;hpb=cbf0c0c6e3ecf82381e9a7fd41154f600c2456f4;p=kdenlive diff --git a/testingArea/audioOffset.cpp b/testingArea/audioOffset.cpp index fd2e9c3b..f71b1052 100644 --- a/testingArea/audioOffset.cpp +++ b/testingArea/audioOffset.cpp @@ -137,11 +137,6 @@ int main(int argc, char *argv[]) envelopeSub->loadStdDev(); envelopeSub->dumpInfo(); - - - - - // Calculate the correlation and hereby the audio shift AudioCorrelation corr(envelopeMain); int index = corr.addChild(envelopeSub, useFFT); @@ -149,25 +144,23 @@ int main(int argc, char *argv[]) int shift = corr.getShift(index); std::cout << " Should be shifted by " << shift << " frames: " << fileSub << std::endl << "\trelative to " << fileMain << std::endl - << "\tin a " << prodMain.get_fps() << " fps profile (" << profile << ")." << std::endl - ; + << "\tin a " << prodMain.get_fps() << " fps profile (" << profile << ")." << std::endl; if (saveImages) { - QString outImg; - outImg = QString("envelope-main-%1.png") + QString outImg = QString::fromLatin1("envelope-main-%1.png") .arg(QDateTime::currentDateTime().toString("yyyy-MM-dd-hh:mm:ss")); envelopeMain->drawEnvelope().save(outImg); std::cout << "Saved volume envelope as " << QFileInfo(outImg).absoluteFilePath().toStdString() << std::endl; - outImg = QString("envelope-sub-%1.png") + outImg = QString::fromLatin1("envelope-sub-%1.png") .arg(QDateTime::currentDateTime().toString("yyyy-MM-dd-hh:mm:ss")); envelopeSub->drawEnvelope().save(outImg); std::cout << "Saved volume envelope as " << QFileInfo(outImg).absoluteFilePath().toStdString() << std::endl; - outImg = QString("correlation-%1.png") + outImg = QString::fromLatin1("correlation-%1.png") .arg(QDateTime::currentDateTime().toString("yyyy-MM-dd-hh:mm:ss")); corr.info(index)->toImage().save(outImg); std::cout << "Saved correlation image as " @@ -176,7 +169,7 @@ int main(int argc, char *argv[]) } -// Mlt::Factory::close(); + // Mlt::Factory::close(); return 0;