diff options
author | Chris Robinson <[email protected]> | 2011-08-29 00:03:09 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2011-08-29 00:03:09 -0700 |
commit | 01503f8a7bd99136445008eba5bed5af483a7aea (patch) | |
tree | e55833946185852b637e2073b8d8b3a431ff4c33 /OpenAL32 | |
parent | aa99e1220b72863ca137917d0c45033aad7cd67d (diff) |
Use an enum instead of an boolean for some flags
They still only hold AL_TRUE or AL_FALSE, but some systems can't properly
handle atomic swaps of 1-byte types.
Diffstat (limited to 'OpenAL32')
-rw-r--r-- | OpenAL32/Include/alAuxEffectSlot.h | 2 | ||||
-rw-r--r-- | OpenAL32/Include/alMain.h | 4 | ||||
-rw-r--r-- | OpenAL32/Include/alSource.h | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/OpenAL32/Include/alAuxEffectSlot.h b/OpenAL32/Include/alAuxEffectSlot.h index fe63b39b..ac71c4ec 100644 --- a/OpenAL32/Include/alAuxEffectSlot.h +++ b/OpenAL32/Include/alAuxEffectSlot.h @@ -18,7 +18,7 @@ typedef struct ALeffectslot ALfloat Gain; ALboolean AuxSendAuto; - ALboolean NeedsUpdate; + ALenum NeedsUpdate; ALeffectState *EffectState; ALfloat WetBuffer[BUFFERSIZE]; diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h index 75dd7ec8..641baf7c 100644 --- a/OpenAL32/Include/alMain.h +++ b/OpenAL32/Include/alMain.h @@ -514,7 +514,7 @@ struct ALCcontext_struct ALenum LastError; - ALboolean UpdateSources; + ALenum UpdateSources; enum DistanceModel DistanceModel; ALboolean SourceDistanceModel; @@ -522,7 +522,7 @@ struct ALCcontext_struct ALfloat DopplerFactor; ALfloat DopplerVelocity; ALfloat flSpeedOfSound; - ALboolean DeferUpdates; + ALenum DeferUpdates; struct ALsource **ActiveSources; ALsizei ActiveSourceCount; diff --git a/OpenAL32/Include/alSource.h b/OpenAL32/Include/alSource.h index 735e669c..f76cd2c1 100644 --- a/OpenAL32/Include/alSource.h +++ b/OpenAL32/Include/alSource.h @@ -119,7 +119,7 @@ typedef struct ALsource ALfloat history[MAXCHANNELS]; } Send[MAX_SENDS]; } Params; - ALboolean NeedsUpdate; + ALenum NeedsUpdate; ALvoid (*Update)(struct ALsource *self, const ALCcontext *context); |