diff minijss/jssmix.c @ 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 eba3b87f3f84
children e22d4ceb6414
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)
     {