mirror of
https://github.com/cookiengineer/audacity
synced 2026-02-09 13:12:17 +01:00
Apparently, wxConfigBase::Write() does not update values for next access on all platforms unless Flush() method is called. Added many calls to wxConfigBase::Flush() to make sure the Rad() calls get the right values.
This commit is contained in:
@@ -70,6 +70,8 @@ bool EffectLeveller::Init()
|
||||
gPrefs->Write(wxT("/Effects/Leveller/LevellerDbChoiceIndex"), mLevellerDbChoiceIndex);
|
||||
}
|
||||
#endif // CLEANSPEECH
|
||||
gPrefs->Flush();
|
||||
|
||||
mLevellerDbSilenceThreshold = Enums::Db2Signal[mLevellerDbChoiceIndex];
|
||||
|
||||
CalcLevellerFactors();
|
||||
@@ -86,6 +88,7 @@ void EffectLeveller::End()
|
||||
{
|
||||
int frameSum = (int)mFrameSum;
|
||||
gPrefs->Write(wxT("/Validate/LevellerFrameSum"), frameSum);
|
||||
gPrefs->Flush();
|
||||
}
|
||||
|
||||
#define LEVELER_FACTORS 6
|
||||
@@ -149,6 +152,7 @@ bool EffectLeveller::PromptUser()
|
||||
gPrefs->Write(wxT("/Effects/Leveller/LevellerDbChoiceIndex"), mLevellerDbChoiceIndex);
|
||||
gPrefs->Write(wxT("/Effects/Leveller/LevellerNumPasses"), mLevellerNumPasses);
|
||||
#endif // CLEANSPEECH
|
||||
gPrefs->Flush();
|
||||
|
||||
CalcLevellerFactors();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user