X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=testingArea%2FaudioOffset.cpp;h=fd2e9c3b2044d347d2db3945c6cf97b3b25f9bdd;hb=58c5d98d7ea0cbe8745a52a0d55414cf56938d97;hp=af248b3ed59fa271ea7dd4ec33cfd44f13e05fa6;hpb=e8f7593667e80fe3369c52d939776345c39a201c;p=kdenlive diff --git a/testingArea/audioOffset.cpp b/testingArea/audioOffset.cpp index af248b3e..fd2e9c3b 100644 --- a/testingArea/audioOffset.cpp +++ b/testingArea/audioOffset.cpp @@ -52,7 +52,7 @@ int main(int argc, char *argv[]) bool useFFT = false; // Load arguments - foreach (QString str, args) { + foreach (const QString &str, args) { if (str.startsWith("--profile=")) { QString s = str; @@ -127,12 +127,12 @@ int main(int argc, char *argv[]) // Build the audio envelopes for the correlation - AudioEnvelope *envelopeMain = new AudioEnvelope(&prodMain); + AudioEnvelope *envelopeMain = new AudioEnvelope(fileMain.c_str(), &prodMain); envelopeMain->loadEnvelope(); envelopeMain->loadStdDev(); envelopeMain->dumpInfo(); - AudioEnvelope *envelopeSub = new AudioEnvelope(&prodSub); + AudioEnvelope *envelopeSub = new AudioEnvelope(fileSub.c_str(), &prodSub); envelopeSub->loadEnvelope(); envelopeSub->loadStdDev(); envelopeSub->dumpInfo(); @@ -176,6 +176,9 @@ int main(int argc, char *argv[]) } +// Mlt::Factory::close(); + + return 0; }