1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-01-08 09:27:11 +01:00

Increase default refresh rate in Meter widget

Signed-off-by: Panagiotis Vasilopoulos <hello@alwayslivid.com>
This commit is contained in:
Panagiotis Vasilopoulos
2021-07-15 21:16:49 +00:00
committed by Semisol
parent eb7b71950b
commit 52e21d26c9

View File

@@ -7,7 +7,7 @@
Dominic Mazzoni Dominic Mazzoni
Vaughan Johnson Vaughan Johnson
2004.06.25 refresh rate limited to 30mS, by ChackoN Refresh rate limited to 60Hz
*******************************************************************//** *******************************************************************//**
@@ -414,7 +414,7 @@ void MeterPanel::UpdatePrefs()
mMeterRefreshRate = mMeterRefreshRate =
std::max(MIN_REFRESH_RATE, std::min(MAX_REFRESH_RATE, std::max(MIN_REFRESH_RATE, std::min(MAX_REFRESH_RATE,
gPrefs->Read(Key(wxT("RefreshRate")), 30))); gPrefs->Read(Key(wxT("RefreshRate")), 60)));
mGradient = gPrefs->Read(Key(wxT("Bars")), wxT("Gradient")) == wxT("Gradient"); mGradient = gPrefs->Read(Key(wxT("Bars")), wxT("Gradient")) == wxT("Gradient");
mDB = gPrefs->Read(Key(wxT("Type")), wxT("dB")) == wxT("dB"); mDB = gPrefs->Read(Key(wxT("Type")), wxT("dB")) == wxT("dB");
mMeterDisabled = gPrefs->Read(Key(wxT("Disabled")), (long)0); mMeterDisabled = gPrefs->Read(Key(wxT("Disabled")), (long)0);