~mr-unwell2006/mixxx/mixxx

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef ANALYSER_WAVESUMMARY_H
#define ANALYSER_WAVESUMMARY_H

#include <QByteArray>

#include "analyser.h"

class AnalyserWavesummary : public Analyser {

  public:
    AnalyserWavesummary();
    void initialise(TrackPointer tio, int sampleRate, int totalSamples);
    void process(const CSAMPLE *pIn, const int iLen);
    void finalise(TrackPointer tio);

  private:
    QByteArray *m_pData;
    int m_iCurPos;
    int m_iBufferPos;
    int m_iStrideLength;
    float m_fMax;
    float m_fMin;
};

#endif