Mixxx

/home/maxime/Projets/Mixxx/1.10/mixxx/src/tapfilter.h

Go to the documentation of this file.
00001 #ifndef TAPFILTER_H
00002 #define TAPFILTER_H
00003 
00004 #include <QObject>
00005 #include <QTime>
00006 
00007 #include "defs.h"
00008 
00009 class TapFilter : public QObject {
00010     Q_OBJECT
00011   public:
00012     TapFilter(QObject *pParent, int filterLength, int maxInterval);
00013     virtual ~TapFilter();
00014     void tap();
00015 
00016   signals:
00017     void tapped(double averageLength, int numSamples);
00018 
00019   private:
00020     QTime m_timer;
00021     CSAMPLE* m_pFilterBuffer;
00022     int m_iFilterLength;
00023     int m_iValidPresses;
00024     int m_iMaxInterval;
00025 };
00026 
00027 #endif /* TAPFILTER_H */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines