Audacity 3.2.0
QualitySettings.cpp
Go to the documentation of this file.
1/**********************************************************************
2
3 Audacity: A Digital Audio Editor
4
5 QualitySettings.cpp
6
7 Paul Licameli split from QualityPrefs.cpp
8
9 **********************************************************************/
10
11#include "QualitySettings.h"
12#include "AudioIOBase.h"
13#include "Internat.h"
14
16 L"/SamplingRate/DefaultProjectSampleRate",
18};
19
21 L"/SamplingRate/DefaultProjectSampleFormatChoice",
22 {
23 { L"Format16Bit", XO("16-bit") },
24 { L"Format24Bit", XO("24-bit") },
25 { L"Format32BitFloat", XO("32-bit float") }
26 },
27 2, // floatSample
28
29 // for migrating old preferences:
30 {
34 },
35 L"/SamplingRate/DefaultProjectSampleFormat",
36};
37
39{
40 return SampleFormatSetting.ReadEnum();
41}
XO("Cut/Copy/Paste")
constexpr sampleFormat int16Sample
Definition: SampleFormat.h:43
constexpr sampleFormat floatSample
Definition: SampleFormat.h:45
constexpr sampleFormat int24Sample
Definition: SampleFormat.h:44
sampleFormat
The ordering of these values with operator < agrees with the order of increasing bit width.
Definition: SampleFormat.h:30
static int GetOptimalSupportedSampleRate()
Get a supported sample rate which can be used a an optimal default.
Adapts EnumSettingBase to a particular enumeration type.
Definition: Prefs.h:514
Specialization of Setting for int.
Definition: Prefs.h:356
PROJECT_RATE_API sampleFormat SampleFormatChoice()
PROJECT_RATE_API IntSetting DefaultSampleRate
PROJECT_RATE_API EnumSetting< sampleFormat > SampleFormatSetting