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:
parent
dada8068d0
commit
d4989b3a53
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user