changeset 54:65cdb4de6fd8

Cosmetics.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 01 Oct 2012 04:18:15 +0300
parents a83f7c4d9e08
children e0e470c3fc8e
files jssmix.c
diffstat 1 files changed, 11 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/jssmix.c	Mon Oct 01 04:18:03 2012 +0300
+++ b/jssmix.c	Mon Oct 01 04:18:15 2012 +0300
@@ -199,8 +199,8 @@
     {
         case JSS_AUDIO_U16: sampSize *= sizeof(Uint16); break;
         case JSS_AUDIO_S16: sampSize *= sizeof(Sint16); break;
-        case JSS_AUDIO_U8: sampSize *= sizeof(Uint8); break;
-        case JSS_AUDIO_S8: sampSize *= sizeof(Sint8); break;
+        case JSS_AUDIO_U8:  sampSize *= sizeof(Uint8); break;
+        case JSS_AUDIO_S8:  sampSize *= sizeof(Sint8); break;
         default:
             JSSERROR(DMERR_INVALID_ARGS, -1,
             "outFormat=%d is not supported!\n", mixer->outFormat);
@@ -212,14 +212,14 @@
 
 int jvmGetSampleRes(JSSMixer *mixer)
 {
-    int sampRes = 1;
+    int sampRes = 0;
     
     assert(mixer);
     
     switch (mixer->outFormat)
     {
         case JSS_AUDIO_U16: case JSS_AUDIO_S16: sampRes = 16; break;
-        case JSS_AUDIO_U8: case JSS_AUDIO_S8: sampRes = 8; break;
+        case JSS_AUDIO_U8:  case JSS_AUDIO_S8:  sampRes = 8; break;
         default:
             JSSERROR(DMERR_INVALID_ARGS, -1,
             "outFormat=%d is not supported!\n", mixer->outFormat);
@@ -502,14 +502,14 @@
     JSS_LOCK(mixer);
     c = &mixer->channels[channel];
     
-    c->chData = data;
-    c->chSize = size;
-    c->chLoopS = loopS;
-    c->chLoopE = loopE;
-    c->chFlags = flags;
+    c->chData      = data;
+    c->chSize      = size;
+    c->chLoopS     = loopS;
+    c->chLoopE     = loopE;
+    c->chFlags     = flags;
     c->chDirection = TRUE;
-    c->chPrevL = c->chPrevR = 0;
-    c->chPos.dw = c->chDeltaO.dw = 0;
+    c->chPrevL     = c->chPrevR = 0;
+    c->chPos.dw    = c->chDeltaO.dw = 0;
     
     JSS_UNLOCK(mixer);
 }