]> git.sesse.net Git - kdenlive/blobdiff - src/audioscopes/audiospectrum.h
Audio Spectrum: Increased performance by 25 % by directly painting lines instead...
[kdenlive] / src / audioscopes / audiospectrum.h
index 9ab399160f89b669aaff419ebdcf86af38da2ba9..057dcdeed531cebaca19158de404a599834ec6ba 100644 (file)
@@ -17,6 +17,9 @@
 #ifndef AUDIOSPECTRUM_H
 #define AUDIOSPECTRUM_H
 
+// Enables debugging
+//#define DEBUG_AUDIOSPEC
+
 #include <QtCore>
 #include <QVector>
 #include <QHash>
@@ -91,6 +94,11 @@ private:
         */
     static const QVector<float> interpolatePeakPreserving(const QVector<float> in, const uint targetSize, uint left = 0, uint right = 0, float fill = 0.0);
 
+#ifdef DEBUG_AUDIOSPEC
+    long m_timeTotal;
+    long m_showTotal;
+#endif
+
 
 private slots:
     void slotResetMaxFreq();