mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-26 00:58:37 +02:00
Fix bug 1937
';type tool' effects cannot return audio from Nyquist.
This commit is contained in:
parent
3480f5aa3a
commit
0d9cd4b024
@ -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) {
|
if (rval == nyx_error) {
|
||||||
// Return value is not valid type.
|
// Return value is not valid type.
|
||||||
// Show error in debug window if trace enabled, otherwise log.
|
// Show error in debug window if trace enabled, otherwise log.
|
||||||
@ -1356,7 +1362,7 @@ bool NyquistEffect::ProcessOne()
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
wxLogMessage(wxT("Nyquist returned nyx_error."));
|
wxLogMessage("Nyquist returned nyx_error:\n%s", mDebugOutput);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user