#ifndef MEASURER_H #define MEASURER_H #include enum MeasureChannel { Left, Right }; class Measurer { const int TONE_FREQUENCY = 6000; const int SAMPLE_RATE = 44100; const float SILENCE_LEVEL = 0.3; MeasureChannel channel; QAudioDeviceInfo input, output; bool debug; float ProcessData(QByteArray data); public: Measurer(QAudioDeviceInfo input, QAudioDeviceInfo output, MeasureChannel channel, bool debug); float Measure(float duration); }; #endif // MEASURER_H