]> git.sesse.net Git - kdenlive/blobdiff - src/audioscopes/audiospectrum.h
Audio Spectrum: Maximum frequency can be adjusted by horizontal dragging
[kdenlive] / src / audioscopes / audiospectrum.h
index 61a738317901e4ff056940123a507f9617661b99..c3547972fa42caea6b2a504c79decf231d2936a5 100644 (file)
@@ -56,9 +56,7 @@ private:
     kiss_fftr_cfg m_cfg;
     QHash<QString, QVector<float> > m_windowFunctions;
 
-    QAction *m_aLockHz;
-
-    QSize m_distance;
+    QAction *m_aResetHz;
 
     // Contains the plot only; m_scopeRect contains text and widgets as well
     QRect m_innerScopeRect;
@@ -71,6 +69,8 @@ private:
     /** Maximum frequency (depends on the sampling rate)
         Stored for the HUD painter */
     uint m_freqMax;
+    /** The user has chosen a custom frequency. */
+    bool m_customFreq;
 
 
     ///// Movement detection /////
@@ -89,6 +89,7 @@ private:
 
 private slots:
     void slotUpdateCfg();
+    void slotResetMaxFreq();
 
 };