Mercurial > hg > dmlib
diff minijss/jssmix.c @ 809:eba3b87f3f84
Add some separate macros for 64/32 precision fixed point types.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 14 May 2014 21:28:14 +0300 |
parents | c430112449a7 |
children | 68453f04964d |
line wrap: on
line diff
--- a/minijss/jssmix.c Tue May 13 18:18:10 2014 +0300 +++ b/minijss/jssmix.c Wed May 14 21:28:14 2014 +0300 @@ -324,13 +324,13 @@ DBG("MIX_FW[%p : %d : ", ab, mixDone); if (chn->chFlags & jsfLooped) { - DBG("%d (%x)] {loop}\n", FP_GETH(chn->chLoopE), FP_GETH(chn->chLoopE)); + DBG("%d (%x)] {loop}\n", FP_GETH32(chn->chLoopE), FP_GETH32(chn->chLoopE)); mixResult = mixer->jvmMixChannel_FW((void *) mixer, chn, ab, mixDone, chn->chLoopE); } else { - DBG("%d (%x)]\n", FP_GETH(chn->chSize), FP_GETH(chn->chSize)); + DBG("%d (%x)]\n", FP_GETH32(chn->chSize), FP_GETH32(chn->chSize)); mixResult = mixer->jvmMixChannel_FW((void *) mixer, chn, ab, mixDone, chn->chSize); } @@ -596,7 +596,7 @@ int tmp; JSS_LOCK(mixer); - tmp = FP_GETH(mixer->channels[channel].chVolume); + tmp = FP_GETH32(mixer->channels[channel].chVolume); JSS_UNLOCK(mixer); return tmp; @@ -616,7 +616,7 @@ Sint32 tmp; JSS_LOCK(mixer); - tmp = FP_GETH(mixer->channels[channel].chPos); + tmp = FP_GETH32(mixer->channels[channel].chPos); JSS_UNLOCK(mixer); return tmp; @@ -657,7 +657,7 @@ int tmp; JSS_LOCK(mixer); - tmp = FP_GETH(mixer->channels[channel].chPanning); + tmp = FP_GETH32(mixer->channels[channel].chPanning); JSS_UNLOCK(mixer); return tmp;