diff options
author | Chris Robinson <[email protected]> | 2011-08-29 21:30:12 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2011-08-29 21:30:12 -0700 |
commit | 7408396fd4bc1e99c1f8bd66006c5587362a5d8e (patch) | |
tree | c01e5440dcfe31efa4eda1c001386b68659c554e /Alc/ALu.c | |
parent | da081b81c425805eef5b3d4a07c7a213490e04b7 (diff) |
Use a generic int type to handle enum swaps
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r-- | Alc/ALu.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -982,7 +982,7 @@ ALvoid aluMixData(ALCdevice *device, ALvoid *buffer, ALsizei size) ALenum UpdateSources = AL_FALSE; if(!DeferUpdates) - UpdateSources = Exchange_ALenum(&ctx->UpdateSources, AL_FALSE); + UpdateSources = ExchangeInt(&ctx->UpdateSources, AL_FALSE); src = ctx->ActiveSources; src_end = src + ctx->ActiveSourceCount; @@ -995,7 +995,7 @@ ALvoid aluMixData(ALCdevice *device, ALvoid *buffer, ALsizei size) continue; } - if(!DeferUpdates && (Exchange_ALenum(&(*src)->NeedsUpdate, AL_FALSE) || + if(!DeferUpdates && (ExchangeInt(&(*src)->NeedsUpdate, AL_FALSE) || UpdateSources)) ALsource_Update(*src, ctx); @@ -1019,7 +1019,7 @@ ALvoid aluMixData(ALCdevice *device, ALvoid *buffer, ALsizei size) ALEffectSlot->PendingClicks[i] = 0.0f; } - if(!DeferUpdates && Exchange_ALenum(&ALEffectSlot->NeedsUpdate, AL_FALSE)) + if(!DeferUpdates && ExchangeInt(&ALEffectSlot->NeedsUpdate, AL_FALSE)) ALEffect_Update(ALEffectSlot->EffectState, ctx, ALEffectSlot); ALEffect_Process(ALEffectSlot->EffectState, ALEffectSlot, |