]> git.sesse.net Git - kdenlive/blobdiff - src/audioscopes/audiospectrum.h
Made AbstractAudioScope and AbstractGfxScope inherit from AbstractScope; Done for...
[kdenlive] / src / audioscopes / audiospectrum.h
index c538a7783c48f7879c04a2f1c7c54c3ec3f05b57..205d120257b733780f4cd826d6c7736bf46074ad 100644 (file)
@@ -1,3 +1,13 @@
+/***************************************************************************
+ *   Copyright (C) 2010 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 AUDIOSPECTRUM_H
 #define AUDIOSPECTRUM_H
 
@@ -23,16 +33,34 @@ protected:
     ///// Implemented methods /////
     QRect scopeRect();
     QImage renderHUD(uint accelerationFactor);
-    QImage renderScope(uint accelerationFactor, const QVector<int16_t> audioFrame, const int freq, const int num_channels, const int num_samples);
+    QImage renderAudioScope(uint accelerationFactor, const QVector<int16_t> audioFrame, const int freq, const int num_channels, const int num_samples);
     QImage renderBackground(uint accelerationFactor);
     bool isHUDDependingOnInput() const;
     bool isScopeDependingOnInput() const;
     bool isBackgroundDependingOnInput() const;
     virtual void readConfig();
+    void writeConfig();
 
 private:
     Ui::AudioSpectrum_UI *ui;
     kiss_fftr_cfg m_cfg;
+
+    QAction *m_aLin;
+    QAction *m_aLog;
+    QActionGroup *m_agScale;
+
+    QSize m_distance;
+
+    /** Lower bound for the dB value to display */
+    int m_dBmin;
+    /** Upper bound (max: 0) */
+    int m_dBmax;
+
+    uint m_freqMax;
+
+private slots:
+    void slotUpdateCfg();
+
 };
 
 #endif // AUDIOSPECTRUM_H