Audacity 3.2.0
Meter.h
Go to the documentation of this file.
1/*!********************************************************************
2
3Audacity: A Digital Audio Editor
4
5@file Meter.h
6
7Paul Licameli split from MeterPanelBase.h
8
9**********************************************************************/
10
11#ifndef __AUDACITY_METER__
12#define __AUDACITY_METER__
13
15class AUDIO_DEVICES_API Meter /* not final */
16{
17public:
18 virtual ~Meter();
19
20 virtual void Clear() = 0;
21 virtual void Reset(double sampleRate, bool resetClipping) = 0;
22 virtual void UpdateDisplay(unsigned numChannels,
23 unsigned long numFrames, const float *sampleData) = 0;
24 virtual bool IsMeterDisabled() const = 0;
25 virtual float GetMaxPeak() const = 0;
26 virtual bool IsClipping() const = 0;
27 virtual int GetDBRange() const = 0;
28};
29
30#endif
AudioIO uses this to send sample buffers for real-time display updates.
Definition: Meter.h:16
virtual int GetDBRange() const =0
virtual void UpdateDisplay(unsigned numChannels, unsigned long numFrames, const float *sampleData)=0
virtual void Reset(double sampleRate, bool resetClipping)=0
virtual void Clear()=0
virtual bool IsClipping() const =0
virtual bool IsMeterDisabled() const =0
virtual float GetMaxPeak() const =0