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}
#define XO(s)
Definition: Internat.h:31
sampleFormat
Definition: SampleFormat.h:29
@ floatSample
Definition: SampleFormat.h:34
@ int16Sample
Definition: SampleFormat.h:32
@ int24Sample
Definition: SampleFormat.h:33
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:507
Specialization of Setting for int.
Definition: Prefs.h:349
PROJECT_RATE_API sampleFormat SampleFormatChoice()
PROJECT_RATE_API IntSetting DefaultSampleRate
PROJECT_RATE_API EnumSetting< sampleFormat > SampleFormatSetting