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 ImportUtils::ChooseFormat(), WaveTrackFactory::Create(), WaveTrackFactory::CreateMany(), anonymous_namespace{TrackMenus.cpp}::DoMixAndRender(), FindDependencies(), ProjectManager::GetEstimatedRecordingMinsLeftOnDisk(), anonymous_namespace{WaveTrackMenuItems.cpp}::OnNewStereoTrack(), anonymous_namespace{WaveTrackMenuItems.cpp}::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 DevicePrefs::Commit(), EffectBase::EffectBase(), DevicePrefs::Populate(), DevicePrefs::PopulateOrExchange(), and ProjectRate::ProjectRate().

◆ 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",
}
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

Definition at line 20 of file QualitySettings.cpp.

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