1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-14 16:46:28 +01:00

Nyquist: Handle nyx_list return value

Required to avoid error on running Macoro Scripting commands
from Nyquist.
This commit is contained in:
SteveDaulton
2020-02-15 15:28:01 +00:00
parent cda8f2fcd6
commit 63c7f6b722
3 changed files with 29 additions and 16 deletions

View File

@@ -613,7 +613,7 @@ bool NyquistEffect::Process()
mDelegate.reset();
return result;
}
// Check for reentrant Nyquist commands.
// I'm choosing to mark skipped Nyquist commands as successful even though
// they are skipped. The reason is that when Nyquist calls out to a chain,
@@ -1412,6 +1412,16 @@ bool NyquistEffect::ProcessOne()
return false;
}
if (rval == nyx_list) {
wxLogMessage("Nyquist returned nyx_list");
if (GetType() == EffectTypeTool) {
mProjectChanged = true;
} else {
Effect::MessageBox(XO("Nyquist returned a list.") );
}
return true;
}
if (rval == nyx_string) {
// Assume the string has already been translated within the Lisp runtime
// if necessary, by gettext or ngettext defined below, before it is