MCPcopy Create free account
hub / github.com/audacity/audacity / GetFactoryPresets

Method GetFactoryPresets

src/effects/Limiter.cpp:83–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83RegistryPaths EffectLimiter::GetFactoryPresets() const
84{
85 const auto presets = DynamicRangeProcessorUtils::GetLimiterPresets();
86 RegistryPaths paths(presets.size());
87 std::transform(
88 presets.begin(), presets.end(), paths.begin(), [](const auto& preset) {
89 return RegistryPath { preset.name.Translation() };
90 });
91 return paths;
92}
93
94OptionalMessage
95EffectLimiter::LoadFactoryPreset(int id, EffectSettings& settings) const

Callers 2

EffectPresetsDialogMethod · 0.45
OnMenuMethod · 0.45

Calls 4

TranslationMethod · 0.80
sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected