Audacity 3.2.0
Functions | Variables
QualitySettings Namespace Reference

Functions

PROJECT_RATE_API sampleFormat SampleFormatChoice ()
 

Variables

PROJECT_RATE_API IntSetting DefaultSampleRate
 
PROJECT_RATE_API EnumSetting< sampleFormatSampleFormatSetting
 

Function Documentation

◆ SampleFormatChoice()

sampleFormat QualitySettings::SampleFormatChoice ( )

Definition at line 38 of file QualitySettings.cpp.

39{
40 return SampleFormatSetting.ReadEnum();
41}
PROJECT_RATE_API EnumSetting< sampleFormat > SampleFormatSetting

References SampleFormatSetting.

Referenced by ImportFileHandle::ChooseFormat(), WaveTrackFactory::Create(), anonymous_namespace{TrackMenus.cpp}::DoMixAndRender(), FindDependencies(), ProjectManager::GetEstimatedRecordingMinsLeftOnDisk(), anonymous_namespace{WaveTrackMenuItems.cpp}::Handler::OnNewStereoTrack(), anonymous_namespace{WaveTrackMenuItems.cpp}::Handler::OnNewWaveTrack(), RemoveDependencies(), and AudioIO::StartMonitoring().

Here is the caller graph for this function:

Variable Documentation

◆ DefaultSampleRate

IntSetting QualitySettings::DefaultSampleRate
extern
Initial value:
{
L"/SamplingRate/DefaultProjectSampleRate",
}
static int GetOptimalSupportedSampleRate()
Get a supported sample rate which can be used a an optimal default.

Definition at line 15 of file QualitySettings.cpp.

Referenced by QualityPrefs::Commit(), EffectBase::EffectBase(), QualityPrefs::Populate(), QualityPrefs::PopulateOrExchange(), ProjectRate::ProjectRate(), and SelectionBar::SelectionBar().

◆ SampleFormatSetting

EnumSetting< sampleFormat > QualitySettings::SampleFormatSetting
extern
Initial value:
{
L"/SamplingRate/DefaultProjectSampleFormatChoice",
{
{ L"Format16Bit", XO("16-bit") },
{ L"Format24Bit", XO("24-bit") },
{ L"Format32BitFloat", XO("32-bit float") }
},
2,
{
},
L"/SamplingRate/DefaultProjectSampleFormat",
}
#define XO(s)
Definition: Internat.h:31
@ floatSample
Definition: SampleFormat.h:34
@ int16Sample
Definition: SampleFormat.h:32
@ int24Sample
Definition: SampleFormat.h:33

Definition at line 20 of file QualitySettings.cpp.

Referenced by QualityPrefs::PopulateOrExchange(), and SampleFormatChoice().