Mercurial > hg > dmlib
diff jssmod.c @ 51:36e2f910219c
A non-working implementation of floating point audio mixing.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 01 Oct 2012 03:48:21 +0300 |
parents | 033c660c25f5 |
children | 8725853609db |
line wrap: on
line diff
--- a/jssmod.c Mon Oct 01 03:46:10 2012 +0300 +++ b/jssmod.c Mon Oct 01 03:48:21 2012 +0300 @@ -222,7 +222,7 @@ Uint8 *in = (Uint8 *) src; while (count--) { - *(out++) = (float) (*(in++) - 128) / 128.0f; + *(out++) = ((float) *(in++) - 128.0f) / 56.0f; } } @@ -280,7 +280,7 @@ return res; inst->flags &= !(jsf16bit); - inst->flags |= jfsFP; + inst->flags |= jsfFP; #else if (inst->flags & jsf16bit) continue;