aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/Include
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-05-14 02:47:07 -0700
committerChris Robinson <[email protected]>2014-05-14 02:47:07 -0700
commit1d2504d12e996a4c1e8fe9785901db9a9e3b4d7c (patch)
tree51895ba97192cee1fccab44a838e4fa43d81a984 /OpenAL32/Include
parent4454ae25c753388c529b937ae2ce0f47f06d16c4 (diff)
Make RefCount a non-integer type
It should only be accessed through the appropriate functions to ensure proper atomicity.
Diffstat (limited to 'OpenAL32/Include')
-rw-r--r--OpenAL32/Include/alMain.h6
-rw-r--r--OpenAL32/Include/alMidi.h6
2 files changed, 6 insertions, 6 deletions
diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h
index a95abd44..2f1eb850 100644
--- a/OpenAL32/Include/alMain.h
+++ b/OpenAL32/Include/alMain.h
@@ -610,7 +610,7 @@ enum DeviceType {
struct ALCdevice_struct
{
- volatile RefCount ref;
+ RefCount ref;
ALCboolean Connected;
enum DeviceType Type;
@@ -689,7 +689,7 @@ struct ALCdevice_struct
* the end, so the bottom bit indicates if the device is currently mixing
* and the upper bits indicates how many mixes have been done.
*/
- volatile RefCount MixCount;
+ RefCount MixCount;
/* Default effect slot */
struct ALeffectslot *DefaultSlot;
@@ -744,7 +744,7 @@ DECL_VECTOR(ALeffectslotPtr)
struct ALCcontext_struct
{
- volatile RefCount ref;
+ RefCount ref;
struct ALlistener *Listener;
diff --git a/OpenAL32/Include/alMidi.h b/OpenAL32/Include/alMidi.h
index 24e6675f..d18c165e 100644
--- a/OpenAL32/Include/alMidi.h
+++ b/OpenAL32/Include/alMidi.h
@@ -32,7 +32,7 @@ typedef struct ALenvelope {
typedef struct ALfontsound {
- volatile RefCount ref;
+ RefCount ref;
ALint MinKey, MaxKey;
ALint MinVelocity, MaxVelocity;
@@ -110,7 +110,7 @@ void ReleaseALFontsounds(ALCdevice *device);
typedef struct ALsfpreset {
- volatile RefCount ref;
+ RefCount ref;
ALint Preset; /* a.k.a. MIDI program number */
ALint Bank; /* MIDI bank 0...127, or percussion (bank 128) */
@@ -133,7 +133,7 @@ void ReleaseALPresets(ALCdevice *device);
typedef struct ALsoundfont {
- volatile RefCount ref;
+ RefCount ref;
ALsfpreset **Presets;
ALsizei NumPresets;