Bug 425 - Win/Linux: Nyquist: (vector (aref s 0)(aref s 0)) not returned correctly to track

This commit is contained in:
Leland Lucius 2021-01-30 02:49:30 -06:00
parent 618106f1c3
commit b53d06ed23
1 changed files with 5 additions and 1 deletions

View File

@ -1015,7 +1015,7 @@ int nyx_get_audio(nyx_audio_callback callback, void *userdata)
else {
snd = getsound(getelement(nyx_result, ch));
}
snds[ch] = snd;
snds[ch] = sound_copy(snd);
totals[ch] = 0;
lens[ch] = nyx_input_length;
}
@ -1053,6 +1053,10 @@ int nyx_get_audio(nyx_audio_callback callback, void *userdata)
}
}
for (ch = 0 ; ch < num_channels; ch++) {
sound_unref(snds[ch]);
}
// This will unwind the xlisp context and restore internals to a point just
// before we issued our xlbegin() above. This is important since the internal
// xlisp stacks will contain pointers to invalid objects otherwise.