Skip to content

Commit

Permalink
Fix bug 1856 - Nyquist Progress bar
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveDaulton authored and crsib committed Oct 8, 2021
1 parent 745a6af commit 1657601
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions lib-src/libnyquist/nyx.c
Original file line number Diff line number Diff line change
Expand Up @@ -1002,6 +1002,18 @@ int nyx_get_audio(nyx_audio_callback callback, void *userdata)
goto finish;
}

if (nyx_input_length == 0) {
LVAL val = getvalue(xlenter("LEN"));
if (val != s_unbound) {
if (ntype(val) == FLONUM) {
nyx_input_length = (int64_t) getflonum(val);
}
else if (ntype(val) == FIXNUM) {
nyx_input_length = (int64_t) getfixnum(val);
}
}
}

// at this point, input sounds which were referenced by symbol S
// (or nyx_get_audio_name()) could be referenced by nyx_result, but
// S is now bound to NIL. nyx_result is a protected (garbage
Expand Down

0 comments on commit 1657601

Please sign in to comment.