Audacity 3.2.0
|
#include <CompressionMeterPanel.h>
Public Member Functions | |
CompressionMeterPanel (wxWindow *parent, int id, CompressorInstance &instance, float dbRange, std::function< void()> onClipped) | |
void | SetDbRange (float dbRange) |
void | Reset () |
void | ResetClipped () |
Public Member Functions inherited from wxPanelWrapper | |
wxPanelWrapper () | |
wxPanelWrapper (wxWindow *parent, wxWindowID winid=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL|wxNO_BORDER, const TranslatableString &name=XO("Panel")) | |
bool | Create (wxWindow *parent, wxWindowID winid=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL|wxNO_BORDER, const TranslatableString &name=XO("Panel")) |
void | SetLabel (const TranslatableString &label) |
void | SetName (const TranslatableString &name) |
void | SetToolTip (const TranslatableString &toolTip) |
void | SetName () |
Public Member Functions inherited from wxTabTraversalWrapper< wxPanel > | |
wxTabTraversalWrapper (Args &&... args) | |
wxTabTraversalWrapper (const wxTabTraversalWrapper &)=delete | |
wxTabTraversalWrapper (wxTabTraversalWrapper &&)=delete | |
wxTabTraversalWrapper & | operator= (const wxTabTraversalWrapper &)=delete |
wxTabTraversalWrapper & | operator= (wxTabTraversalWrapper &&)=delete |
Protected Member Functions | |
DECLARE_EVENT_TABLE () | |
Private Member Functions | |
void | PaintMeter (wxPaintDC &dc, const wxColor &color, const wxRect &rect, const MeterValueProvider &provider) |
void | OnPaint (wxPaintEvent &evt) |
void | OnTimer (wxTimerEvent &evt) |
bool | AcceptsFocus () const override |
bool | AcceptsFocusFromKeyboard () const override |
Private Attributes | |
const std::shared_ptr< DynamicRangeProcessorMeterValuesQueue > | mMeterValuesQueue |
const Observer::Subscription | mPlaybackStartStopSubscription |
const Observer::Subscription | mPlaybackPausedSubscription |
const std::function< void()> | mOnClipped |
std::unique_ptr< MeterValueProvider > | mCompressionMeter |
std::unique_ptr< MeterValueProvider > | mOutputMeter |
float | mDbBottomEdgeValue |
wxTimer | mTimer |
bool | mStopWhenZero = false |
bool | mClipped = false |
Definition at line 25 of file CompressionMeterPanel.h.
CompressionMeterPanel::CompressionMeterPanel | ( | wxWindow * | parent, |
int | id, | ||
CompressorInstance & | instance, | ||
float | dbRange, | ||
std::function< void()> | onClipped | ||
) |
Definition at line 38 of file CompressionMeterPanel.cpp.
|
overrideprivate |
Definition at line 218 of file CompressionMeterPanel.cpp.
|
overrideprivate |
Definition at line 223 of file CompressionMeterPanel.cpp.
|
protected |
|
private |
Definition at line 103 of file CompressionMeterPanel.cpp.
References DynamicRangeProcessorPanel::actualCompressionColor, DynamicRangeProcessorPanel::GetGraphBackgroundBrush(), DynamicRangeProcessorPanel::GetPanelRect(), DynamicRangeProcessorPanel::lineColor, DynamicRangeProcessorPanel::MakeGraphicsContext(), mCompressionMeter, mOutputMeter, DynamicRangeProcessorPanel::outputColor, and PaintMeter().
|
private |
Definition at line 181 of file CompressionMeterPanel.cpp.
References mClipped, mCompressionMeter, min(), mMeterValuesQueue, mOnClipped, mOutputMeter, mStopWhenZero, mTimer, and values.
|
private |
Definition at line 134 of file CompressionMeterPanel.cpp.
References MeterValueProvider::Downwards, DynamicRangeProcessorPanel::GetColorMix(), MeterValueProvider::GetCurrentMax(), MeterValueProvider::GetDirection(), MeterValueProvider::GetFiveSecMax(), MeterValueProvider::GetGlobalMax(), DynamicRangeProcessorPanel::MakeGraphicsContext(), and mDbBottomEdgeValue.
Referenced by OnPaint().
void CompressionMeterPanel::Reset | ( | ) |
Definition at line 87 of file CompressionMeterPanel.cpp.
References compressorMeterUpdatePeriodMs, MeterValueProvider::Create(), MeterValueProvider::Downwards, mClipped, mCompressionMeter, mOutputMeter, mStopWhenZero, mTimer, and MeterValueProvider::Upwards.
void CompressionMeterPanel::ResetClipped | ( | ) |
Definition at line 98 of file CompressionMeterPanel.cpp.
References mClipped.
void CompressionMeterPanel::SetDbRange | ( | float | dbRange | ) |
Definition at line 81 of file CompressionMeterPanel.cpp.
References mDbBottomEdgeValue.
|
private |
Definition at line 62 of file CompressionMeterPanel.h.
Referenced by OnTimer(), Reset(), and ResetClipped().
|
private |
Definition at line 56 of file CompressionMeterPanel.h.
|
private |
Definition at line 58 of file CompressionMeterPanel.h.
Referenced by PaintMeter(), and SetDbRange().
|
private |
Definition at line 52 of file CompressionMeterPanel.h.
Referenced by OnTimer().
|
private |
Definition at line 55 of file CompressionMeterPanel.h.
Referenced by OnTimer().
|
private |
Definition at line 57 of file CompressionMeterPanel.h.
|
private |
Definition at line 54 of file CompressionMeterPanel.h.
|
private |
Definition at line 53 of file CompressionMeterPanel.h.
|
private |
Definition at line 61 of file CompressionMeterPanel.h.
|
private |
Definition at line 60 of file CompressionMeterPanel.h.