~ywwg/mixxx/DJO-hacks-1.11

« back to all changes in this revision

Viewing changes to mixxx/src/analyserwaveform.h

  • Committer: Owen Williams
  • Date: 2012-12-24 06:09:04 UTC
  • mfrom: (2438.88.363 1.11)
  • Revision ID: owilliams@localhost-20121224060904-pci6ope8f933y8v4
mergeĀ fromĀ lp:mixxx/1.11

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
}
36
36
 
37
37
class WaveformStride {
38
 
    inline void init( int samples) {
 
38
    inline void init(int samples) {
39
39
        m_length = samples*2;
40
40
        m_postScaleConversion = (float)std::numeric_limits<unsigned char>::max();
41
41
        m_conversionFactor = 1.0; //because we are taking a max, not an average any more
85
85
    virtual ~AnalyserWaveform();
86
86
 
87
87
    bool initialise(TrackPointer tio, int sampleRate, int totalSamples);
88
 
 
 
88
    bool loadStored(TrackPointer tio) const;
89
89
    void process(const CSAMPLE *buffer, const int bufferLength);
90
90
    void cleanup(TrackPointer tio);
91
91
    void finalise(TrackPointer tio);