1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-25 07:43:54 +02:00

Nyquist fixes for code that exits Audacity without saving audio.

This commit is contained in:
james.k.crook@gmail.com
2011-04-23 10:10:48 +00:00
parent b993dd1074
commit 14bc36ee39
2 changed files with 7 additions and 3 deletions

View File

@@ -4,6 +4,7 @@
Permission is granted for unrestricted non-commercial use */
/* CHANGELOG:
23 Apr 11 (Dannenberg/Crook) xlrand() now retuns zero on zero range.
8 Oct 90 (Dannenberg) changed main() to xlisp_main_init and xlisp_main.
made xlisp run as a module that evaluates expressions and
retains state
@@ -76,11 +77,12 @@ long random() {
/* xlrand - return next random number in sequence */
long xlrand (long range) {
if (range == 0) return 0;
#ifdef USE_RAND
return rand() % range;
return rand() % range;
#endif
#ifdef USE_RANDOM
return random() % range;
return random() % range;
#endif
}