Mercurial > hg > dmlib
diff minijss/jssmix.c @ 2586:9807ae37ad69
Require stdbool.h, we require C11 now.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 08 Dec 2022 15:59:22 +0200 |
parents | 69a5af2eb1ea |
children |
line wrap: on
line diff
--- a/minijss/jssmix.c Thu Dec 08 15:56:36 2022 +0200 +++ b/minijss/jssmix.c Thu Dec 08 15:59:22 2022 +0200 @@ -260,7 +260,7 @@ DMFixedPoint end; FP_ADD_R(end, chn->chLoopE, chn->chLoopE); FP_SUB_R(chn->chPos, end, chn->chPos); - chn->chDirection = FALSE; + chn->chDirection = false; } } else @@ -279,7 +279,7 @@ // Normal (non-looped) sample if (chn->chPos.dw >= chn->chSize.dw) { - chn->chPlaying = FALSE; + chn->chPlaying = false; return; } } @@ -298,7 +298,7 @@ DMFixedPoint start; FP_ADD_R(start, chn->chLoopS, chn->chLoopS); FP_SUB_R(chn->chPos, start, chn->chPos); - chn->chDirection = TRUE; + chn->chDirection = true; } } else @@ -317,7 +317,7 @@ // Normal (non-looped) sample if (chn->chPos.dw <= 0) { - chn->chPlaying = FALSE; + chn->chPlaying = false; return; } } @@ -486,7 +486,7 @@ void jvmPlay(JSSMixer * mixer, const int channel) { JSS_LOCK(mixer); - mixer->channels[channel].chPlaying = TRUE; + mixer->channels[channel].chPlaying = true; JSS_UNLOCK(mixer); } @@ -494,7 +494,7 @@ void jvmStop(JSSMixer * mixer, const int channel) { JSS_LOCK(mixer); - mixer->channels[channel].chPlaying = FALSE; + mixer->channels[channel].chPlaying = false; JSS_UNLOCK(mixer); } @@ -506,7 +506,7 @@ JSS_LOCK(mixer); c = &mixer->channels[channel]; - c->chDirection = TRUE; + c->chDirection = true; c->chPos.dw = c->chDeltaO.dw = 0; JSS_UNLOCK(mixer); @@ -527,7 +527,7 @@ FP_SETHL(c->chLoopE, loopE, 0); c->chData = data; c->chFlags = flags; - c->chDirection = TRUE; + c->chDirection = true; c->chPos.dw = c->chDeltaO.dw = 0; JSS_UNLOCK(mixer); @@ -669,7 +669,7 @@ } -void jvmMute(JSSMixer * mixer, const int channel, const BOOL mute) +void jvmMute(JSSMixer * mixer, const int channel, const bool mute) { JSS_LOCK(mixer); mixer->channels[channel].chMute = mute; @@ -677,9 +677,9 @@ } -BOOL jvmGetMute(JSSMixer * mixer, const int channel) +bool jvmGetMute(JSSMixer * mixer, const int channel) { - BOOL tmp; + bool tmp; JSS_LOCK(mixer); tmp = mixer->channels[channel].chMute;