Audacity  3.0.3
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 }
AudioIOBase.h
IntSetting
Specialization of Setting for int.
Definition: Prefs.h:214
QualitySettings::SampleFormatSetting
PROJECT_RATE_API EnumSetting< sampleFormat > SampleFormatSetting
Definition: QualitySettings.cpp:20
XO
#define XO(s)
Definition: Internat.h:31
int24Sample
@ int24Sample
Definition: SampleFormat.h:33
floatSample
@ floatSample
Definition: SampleFormat.h:34
int16Sample
@ int16Sample
Definition: SampleFormat.h:32
AudioIOBase::GetOptimalSupportedSampleRate
static int GetOptimalSupportedSampleRate()
Get a supported sample rate which can be used a an optimal default.
Definition: AudioIOBase.cpp:562
QualitySettings::DefaultSampleRate
PROJECT_RATE_API IntSetting DefaultSampleRate
Definition: QualitySettings.cpp:15
Internat.h
sampleFormat
sampleFormat
Definition: SampleFormat.h:29
QualitySettings.h
QualitySettings::SampleFormatChoice
PROJECT_RATE_API sampleFormat SampleFormatChoice()
Definition: QualitySettings.cpp:38
EnumSetting
Adapts EnumSettingBase to a particular enumeration type.
Definition: Prefs.h:351