diff testpl.c @ 49:033c660c25f5

Restructure module playing, removing 8bit sample mixing (output can still be 8bit, but samples are internally upconverted to 16bit after module loading.) Also prepare for floating point mixing support.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 01 Oct 2012 02:51:41 +0300
parents fc097f7717df
children e0e470c3fc8e
line wrap: on
line diff
--- a/testpl.c	Mon Oct 01 01:29:26 2012 +0300
+++ b/testpl.c	Mon Oct 01 02:51:41 2012 +0300
@@ -167,6 +167,13 @@
         return 3;
     }
 
+    // Try to convert it
+    if ((result = jssConvertModuleForPlaying(m)) != DMERR_OK)
+    {
+        fprintf(stderr, "Could not convert module for playing, %d: %s\n",
+            result, dmErrorStr(result));
+        return 3;
+    }
 
     // Initialize SDL audio
     fprintf(stderr, "Pre-initializing params\n");