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

Function OnRepeatLastAnalyzer

src/menus/PluginMenus.cpp:173–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171}
172
173void OnRepeatLastAnalyzer(const CommandContext& context)
174{
175 auto& commandManager = CommandManager::Get(context.project);
176 switch (commandManager.mLastAnalyzerRegistration) {
177 case CommandManager::repeattypeplugin:
178 {
179 auto lastEffect = commandManager.mLastAnalyzer;
180 if (!lastEffect.empty())
181 EffectUI::DoEffect(
182 lastEffect, context.project, commandManager.mRepeatAnalyzerFlags);
183 }
184 break;
185 case CommandManager::repeattypeunique:
186 CommandManager::Get(context.project).DoRepeatProcess(context,
187 commandManager.mLastAnalyzerRegisteredId);
188 break;
189 }
190}
191
192void OnManageAnalyzers(const CommandContext &context)
193{

Callers

nothing calls this directly

Calls 3

GetFunction · 0.85
DoRepeatProcessMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected