1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-02-11 14:04:29 +01:00

Don't store default sample format in ProjectSettings...

... it's a global preference.
This commit is contained in:
Paul Licameli
2019-07-20 15:48:29 -04:00
parent ea8a3efc8e
commit 44d9916f85
5 changed files with 10 additions and 16 deletions

View File

@@ -14,7 +14,6 @@ Paul Licameli split from AudacityProject.cpp
#include "AudioIOBase.h"
#include "Project.h"
#include "prefs/QualityPrefs.h"
#include "widgets/NumericTextCtrl.h"
#include "prefs/TracksBehaviorsPrefs.h"
@@ -62,7 +61,6 @@ ProjectSettings::ProjectSettings( AudacityProject &project )
NumericConverter::BANDWIDTH,
gPrefs->Read(wxT("/BandwidthSelectionFormatName"), wxT("")) )
}
, mDefaultFormat{ QualityPrefs::SampleFormatChoice() }
, mSnapTo( gPrefs->Read(wxT("/SnapTo"), SNAP_OFF) )
{
if (!gPrefs->Read(wxT("/SamplingRate/DefaultProjectSampleRate"), &mRate,
@@ -115,8 +113,6 @@ void ProjectSettings::UpdatePrefs()
bar.SetRate( mRate );
}
#endif
mDefaultFormat = QualityPrefs::SampleFormatChoice();
}
const NumericFormatSymbol &