1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-08-12 06:01:13 +02:00

Patch by Steve the Fiddle to trap another invalid return from Nyquist and prevent crashing Audacity

This commit is contained in:
richardash1981 2013-05-06 10:29:06 +00:00
parent dada8068d0
commit d4989b3a53

View File

@ -920,6 +920,13 @@ bool EffectNyquist::ProcessOne()
return false;
}
if (outChannels == 0) {
wxMessageBox(_("Nyquist returned an empty array.\n"),
wxT("Nyquist"),
wxOK | wxCENTRE, mParent);
return false;
}
double rate = mCurTrack[0]->GetRate();
for (i = 0; i < outChannels; i++) {
sampleFormat format = mCurTrack[i]->GetSampleFormat();