Mercurial > hg > dmlib
changeset 843:68453f04964d
Add a better error for no mixing routines compiled in.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 21 Oct 2014 09:33:59 +0300 |
parents | 9a7323271347 |
children | 5ea0bf4379b1 |
files | minijss/jssmix.c |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/minijss/jssmix.c Mon Jul 14 00:46:53 2014 +0300 +++ b/minijss/jssmix.c Tue Oct 21 09:33:59 2014 +0300 @@ -88,6 +88,14 @@ JSSMixer *mixer; int mixerIdx; + // Sanity check + if (jvmNMixRoutines == 0) + { + JSSERROR(DMERR_INTERNAL, NULL, + "No mixing routines compiled in?\n"); + return NULL; + } + // Check settings if (outChannels < 1) {