diff options
Diffstat (limited to 'Alc')
-rw-r--r-- | Alc/ALu.c | 4 | ||||
-rw-r--r-- | Alc/mixer_c.c | 4 | ||||
-rw-r--r-- | Alc/mixer_sse.c | 4 |
3 files changed, 6 insertions, 6 deletions
@@ -313,7 +313,7 @@ ALvoid CalcNonAttnSourceParams(ALsource *ALSource, const ALCcontext *ALContext) } SrcMatrix = ALSource->Params.Direct.Gains; - for(i = 0;i < MaxChannels;i++) + for(i = 0;i < MAX_INPUT_CHANNELS;i++) { for(c = 0;c < MaxChannels;c++) SrcMatrix[i][c] = 0.0f; @@ -859,7 +859,7 @@ ALvoid CalcSourceParams(ALsource *ALSource, const ALCcontext *ALContext) ALfloat DirGain = 0.0f; ALfloat AmbientGain; - for(i = 0;i < MaxChannels;i++) + for(i = 0;i < MAX_INPUT_CHANNELS;i++) { for(j = 0;j < MaxChannels;j++) Matrix[i][j] = 0.0f; diff --git a/Alc/mixer_c.c b/Alc/mixer_c.c index 2cfbcedc..045a8b1f 100644 --- a/Alc/mixer_c.c +++ b/Alc/mixer_c.c @@ -96,7 +96,7 @@ void MixDirect_C(const DirectParams *params, const ALfloat *restrict data, ALuin for(c = 0;c < MaxChannels;c++) { DrySend = params->Gains[srcchan][c]; - if(DrySend < 0.00001f) + if(!(DrySend > 0.00001f)) continue; if(OutPos == 0) @@ -119,7 +119,7 @@ void MixSend_C(const SendParams *params, const ALfloat *restrict data, ALfloat WetSend = params->Gain; ALuint pos; - if(WetSend < 0.00001f) + if(!(WetSend > 0.00001f)) return; if(OutPos == 0) diff --git a/Alc/mixer_sse.c b/Alc/mixer_sse.c index f929469c..d348f9da 100644 --- a/Alc/mixer_sse.c +++ b/Alc/mixer_sse.c @@ -155,7 +155,7 @@ void MixDirect_SSE(const DirectParams *params, const ALfloat *restrict data, ALu __m128 gain; DrySend = params->Gains[srcchan][c]; - if(DrySend < 0.00001f) + if(!(DrySend > 0.00001f)) continue; if(OutPos == 0) @@ -189,7 +189,7 @@ void MixSend_SSE(const SendParams *params, const ALfloat *restrict data, __m128 gain; ALuint pos; - if(WetGain < 0.00001f) + if(!(WetGain > 0.00001f)) return; if(OutPos == 0) |