Audacity  3.0.3
Meter.h
Go to the documentation of this file.
1 /*!********************************************************************
2 
3 Audacity: A Digital Audio Editor
4 
5 @file Meter.h
6 
7 Paul Licameli split from MeterPanelBase.h
8 
9 **********************************************************************/
10 
11 #ifndef __AUDACITY_METER__
12 #define __AUDACITY_METER__
13 
15 class AUDIO_DEVICES_API Meter /* not final */
16 {
17 public:
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
Meter::Clear
virtual void Clear()=0
Meter::IsMeterDisabled
virtual bool IsMeterDisabled() const =0
Meter::Reset
virtual void Reset(double sampleRate, bool resetClipping)=0
Meter::IsClipping
virtual bool IsClipping() const =0
Meter::UpdateDisplay
virtual void UpdateDisplay(unsigned numChannels, unsigned long numFrames, const float *sampleData)=0
Meter
AudioIO uses this to send sample buffers for real-time display updates.
Definition: Meter.h:16
Meter::GetMaxPeak
virtual float GetMaxPeak() const =0
Meter::GetDBRange
virtual int GetDBRange() const =0