1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-25 08:38:39 +02:00

Fix bug 1937

';type tool' effects cannot return audio from Nyquist.
This commit is contained in:
Steve Daulton 2018-08-13 13:35:30 +01:00
parent 3480f5aa3a
commit 0d9cd4b024

View File

@ -1345,6 +1345,12 @@ bool NyquistEffect::ProcessOne()
}
}
if ((rval == nyx_audio) && (GetType() == EffectTypeTool)) {
// Catch this first so that we can also handle other errors.
mDebugOutput = _("';type tool' effects cannot return audio from Nyquist.\n") + mDebugOutput;
rval = nyx_error;
}
if (rval == nyx_error) {
// Return value is not valid type.
// Show error in debug window if trace enabled, otherwise log.
@ -1356,7 +1362,7 @@ bool NyquistEffect::ProcessOne()
return false;
}
else {
wxLogMessage(wxT("Nyquist returned nyx_error."));
wxLogMessage("Nyquist returned nyx_error:\n%s", mDebugOutput);
}
return true;
}