Bug 2338 - Graphic EQ: Frequency sliders cannot be identified by just looking at the effect UI.

This commit is contained in:
James Crook 2020-03-02 18:57:09 +00:00
parent e5dc8928dc
commit 042b0f6b9b
1 changed files with 18 additions and 11 deletions

View File

@ -309,6 +309,23 @@ EffectEqualization::EffectEqualization(int Options)
mEffectEqualization48x.reset();
mBench=false;
#endif
// We expect these Hi and Lo frequences to be overridden by Init().
// Don't use inputTracks(). See bug 2321.
#if 0
auto trackList = inputTracks();
const auto t = trackList
? *trackList->Any< const WaveTrack >().first
: nullptr
;
mHiFreq =
(t
? t->GetRate()
: mProjectRate)
/ 2.0;
#endif
mHiFreq = mProjectRate / 2.0;
mLoFreq = loFreqI;
}
@ -745,17 +762,7 @@ void EffectEqualization::PopulateOrExchange(ShuttleGui & S)
//LoadCurves();
auto trackList = inputTracks();
const auto t = trackList
? *trackList->Any< const WaveTrack >().first
: nullptr
;
mHiFreq =
(t
? t->GetRate()
: mProjectRate)
/ 2.0;
mLoFreq = loFreqI;
S.SetBorder(0);