Audacity 3.2.0
Public Member Functions | Public Attributes | List of all members
MeterPanelBase::Forwarder Struct Reference
Inheritance diagram for MeterPanelBase::Forwarder:
[legend]
Collaboration diagram for MeterPanelBase::Forwarder:
[legend]

Public Member Functions

 Forwarder (MeterPanelBase *pOwner)
 
 ~Forwarder () override
 
void Clear () override
 
void Reset (double sampleRate, bool resetClipping) override
 
void UpdateDisplay (unsigned numChannels, unsigned long numFrames, const float *sampleData) override
 
bool IsMeterDisabled () const override
 
float GetMaxPeak () const override
 
bool IsClipping () const override
 
int GetDBRange () const override
 
- Public Member Functions inherited from Meter
virtual ~Meter ()
 
virtual void Clear ()=0
 
virtual void Reset (double sampleRate, bool resetClipping)=0
 
virtual void UpdateDisplay (unsigned numChannels, unsigned long numFrames, const float *sampleData)=0
 
virtual bool IsMeterDisabled () const =0
 
virtual float GetMaxPeak () const =0
 
virtual bool IsClipping () const =0
 
virtual int GetDBRange () const =0
 

Public Attributes

const wxWeakRef< MeterPanelBasemOwner
 

Detailed Description

Definition at line 22 of file MeterPanelBase.cpp.

Constructor & Destructor Documentation

◆ Forwarder()

MeterPanelBase::Forwarder::Forwarder ( MeterPanelBase pOwner)
inlineexplicit

Definition at line 24 of file MeterPanelBase.cpp.

25 : mOwner{ pOwner } {}
const wxWeakRef< MeterPanelBase > mOwner

◆ ~Forwarder()

MeterPanelBase::Forwarder::~Forwarder ( )
inlineoverride

Definition at line 26 of file MeterPanelBase.cpp.

26{}

Member Function Documentation

◆ Clear()

void MeterPanelBase::Forwarder::Clear ( )
inlineoverridevirtual

Implements Meter.

Definition at line 28 of file MeterPanelBase.cpp.

29 {
30 if (mOwner)
31 mOwner->Clear();
32 }

References mOwner.

◆ GetDBRange()

int MeterPanelBase::Forwarder::GetDBRange ( ) const
inlineoverridevirtual

Implements Meter.

Definition at line 67 of file MeterPanelBase.cpp.

68 {
69 if (mOwner)
70 return mOwner->GetDBRange();
71 else
72 return 0.0;
73 }

References mOwner.

◆ GetMaxPeak()

float MeterPanelBase::Forwarder::GetMaxPeak ( ) const
inlineoverridevirtual

Implements Meter.

Definition at line 51 of file MeterPanelBase.cpp.

52 {
53 if (mOwner)
54 return mOwner->GetMaxPeak();
55 else
56 return 0.0;
57 }

References mOwner.

◆ IsClipping()

bool MeterPanelBase::Forwarder::IsClipping ( ) const
inlineoverridevirtual

Implements Meter.

Definition at line 59 of file MeterPanelBase.cpp.

60 {
61 if (mOwner)
62 return mOwner->IsClipping();
63 else
64 return false;
65 }

References mOwner.

◆ IsMeterDisabled()

bool MeterPanelBase::Forwarder::IsMeterDisabled ( ) const
inlineoverridevirtual

Implements Meter.

Definition at line 44 of file MeterPanelBase.cpp.

45 {
46 if (mOwner)
47 return mOwner->IsMeterDisabled();
48 else
49 return true;
50 }

References mOwner.

◆ Reset()

void MeterPanelBase::Forwarder::Reset ( double  sampleRate,
bool  resetClipping 
)
inlineoverridevirtual

Implements Meter.

Definition at line 33 of file MeterPanelBase.cpp.

34 {
35 if (mOwner)
36 mOwner->Reset( sampleRate, resetClipping );
37 }

References mOwner, and anonymous_namespace{ClipSegmentTest.cpp}::sampleRate.

◆ UpdateDisplay()

void MeterPanelBase::Forwarder::UpdateDisplay ( unsigned  numChannels,
unsigned long  numFrames,
const float *  sampleData 
)
inlineoverridevirtual

Implements Meter.

Definition at line 38 of file MeterPanelBase.cpp.

40 {
41 if (mOwner)
42 mOwner->UpdateDisplay( numChannels, numFrames, sampleData );
43 }

References mOwner.

Member Data Documentation

◆ mOwner

const wxWeakRef< MeterPanelBase > MeterPanelBase::Forwarder::mOwner

The documentation for this struct was generated from the following file: