]> git.sesse.net Git - kdenlive/blobdiff - testingArea/audioEnvelope.h
Audio alignment libraries moved to src/lib/audio/
[kdenlive] / testingArea / audioEnvelope.h
diff --git a/testingArea/audioEnvelope.h b/testingArea/audioEnvelope.h
deleted file mode 100644 (file)
index bdf4a0b..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-/***************************************************************************
- *   Copyright (C) 2012 by Simon Andreas Eugster (simon.eu@gmail.com)      *
- *   This file is part of kdenlive. See www.kdenlive.org.                  *
- *                                                                         *
- *   This program is free software; you can redistribute it and/or modify  *
- *   it under the terms of the GNU General Public License as published by  *
- *   the Free Software Foundation; either version 2 of the License, or     *
- *   (at your option) any later version.                                   *
- ***************************************************************************/
-
-#ifndef AUDIOENVELOPE_H
-#define AUDIOENVELOPE_H
-
-#include "audioInfo.h"
-#include <mlt++/Mlt.h>
-
-class QImage;
-class AudioEnvelope
-{
-public:
-    AudioEnvelope(Mlt::Producer *producer);
-    ~AudioEnvelope();
-
-    /// Returns the envelope, calculates it if necessary.
-    int64_t const* envelope();
-    int envelopeSize() const;
-
-    void loadEnvelope();
-    int64_t loadStdDev();
-    void normalizeEnvelope(bool clampTo0 = false);
-
-    QImage drawEnvelope();
-
-    void dumpInfo() const;
-
-private:
-    int64_t *m_envelope;
-    Mlt::Producer *m_producer;
-    AudioInfo *m_info;
-
-    int m_envelopeSize;
-    int64_t m_envelopeMax;
-    int64_t m_envelopeMean;
-    int64_t m_envelopeStdDev;
-
-    bool m_envelopeStdDevCalculated;
-    bool m_envelopeIsNormalized;
-};
-
-#endif // AUDIOENVELOPE_H