diff options
Diffstat (limited to 'examples/datavis3d/spectrum/spectrumapp/spectrumanalyser.h')
-rw-r--r-- | examples/datavis3d/spectrum/spectrumapp/spectrumanalyser.h | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/examples/datavis3d/spectrum/spectrumapp/spectrumanalyser.h b/examples/datavis3d/spectrum/spectrumapp/spectrumanalyser.h index 582d032d..a5761951 100644 --- a/examples/datavis3d/spectrum/spectrumapp/spectrumanalyser.h +++ b/examples/datavis3d/spectrum/spectrumapp/spectrumanalyser.h @@ -45,18 +45,10 @@ #include <QObject> #include <QVector> -#ifdef DUMP_SPECTRUMANALYSER -#include <QDir> -#include <QFile> -#include <QTextStream> -#endif - #include "frequencyspectrum.h" #include "spectrum.h" -#ifndef DISABLE_FFT #include "FFTRealFixLenParam.h" -#endif QT_FORWARD_DECLARE_CLASS(QAudioFormat) QT_FORWARD_DECLARE_CLASS(QThread) @@ -90,19 +82,14 @@ private: void calculateWindow(); private: -#ifndef DISABLE_FFT FFTRealWrapper* m_fft; -#endif const int m_numSamples; WindowFunction m_windowFunction; -#ifdef DISABLE_FFT - typedef qreal DataType; -#else typedef FFTRealFixLenParam::DataType DataType; -#endif + QVector<DataType> m_window; QVector<DataType> m_input; @@ -127,10 +114,6 @@ public: SpectrumAnalyser(QObject *parent = 0); ~SpectrumAnalyser(); -#ifdef DUMP_SPECTRUMANALYSER - void setOutputPath(const QString &outputPath); -#endif - public: /* * Set the windowing function which is applied before calculating the FFT @@ -183,13 +166,6 @@ private: }; State m_state; - -#ifdef DUMP_SPECTRUMANALYSER - QDir m_outputDir; - int m_count; - QFile m_textFile; - QTextStream m_textStream; -#endif }; #endif // SPECTRUMANALYSER_H |