mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-27 07:43:50 +01:00
Don't store default sample format in ProjectSettings...
... it's a global preference.
This commit is contained in:
@@ -29,6 +29,7 @@
|
||||
#include "../commands/CommandManager.h"
|
||||
#include "../effects/EffectManager.h"
|
||||
#include "../effects/EffectUI.h"
|
||||
#include "../prefs/QualityPrefs.h"
|
||||
#include "../tracks/playabletrack/wavetrack/ui/WaveTrackControls.h"
|
||||
#include "../widgets/ASlider.h"
|
||||
#include "../widgets/AudacityMessageBox.h"
|
||||
@@ -53,7 +54,7 @@ void DoMixAndRender
|
||||
auto &tracks = TrackList::Get( project );
|
||||
auto &trackFactory = TrackFactory::Get( project );
|
||||
auto rate = settings.GetRate();
|
||||
auto defaultFormat = settings.GetDefaultFormat();
|
||||
auto defaultFormat = QualityPrefs::SampleFormatChoice();
|
||||
auto &trackPanel = TrackPanel::Get( project );
|
||||
auto &window = ProjectWindow::Get( project );
|
||||
|
||||
@@ -597,7 +598,8 @@ void OnNewWaveTrack(const CommandContext &context)
|
||||
auto &trackFactory = TrackFactory::Get( project );
|
||||
auto &window = ProjectWindow::Get( project );
|
||||
|
||||
auto defaultFormat = settings.GetDefaultFormat();
|
||||
auto defaultFormat = QualityPrefs::SampleFormatChoice();
|
||||
|
||||
auto rate = settings.GetRate();
|
||||
|
||||
auto t = tracks.Add( trackFactory.NewWaveTrack( defaultFormat, rate ) );
|
||||
@@ -620,7 +622,7 @@ void OnNewStereoTrack(const CommandContext &context)
|
||||
auto &trackFactory = TrackFactory::Get( project );
|
||||
auto &window = ProjectWindow::Get( project );
|
||||
|
||||
auto defaultFormat = settings.GetDefaultFormat();
|
||||
auto defaultFormat = QualityPrefs::SampleFormatChoice();
|
||||
auto rate = settings.GetRate();
|
||||
|
||||
SelectUtilities::SelectNone( project );
|
||||
|
||||
Reference in New Issue
Block a user