aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/Include
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-09-03 16:29:17 -0700
committerChris Robinson <[email protected]>2014-09-03 16:29:17 -0700
commit2f2768e7c3a7e0dd5d926ea1eafb7313a58a07d9 (patch)
treeeddd9846a1d55838d6c566b03f9bb542c2f1c69e /OpenAL32/Include
parent30e01a7dba78826ab4b0099a313c6f8a46656e42 (diff)
Make the fontsound's buffer and link fields atomic
Diffstat (limited to 'OpenAL32/Include')
-rw-r--r--OpenAL32/Include/alMidi.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/OpenAL32/Include/alMidi.h b/OpenAL32/Include/alMidi.h
index 9d9fa6c4..b1c08e40 100644
--- a/OpenAL32/Include/alMidi.h
+++ b/OpenAL32/Include/alMidi.h
@@ -34,7 +34,7 @@ typedef struct ALenvelope {
typedef struct ALfontsound {
RefCount ref;
- struct ALbuffer *Buffer;
+ ATOMIC(struct ALbuffer*) Buffer;
ALint MinKey, MaxKey;
ALint MinVelocity, MaxVelocity;
@@ -85,7 +85,8 @@ typedef struct ALfontsound {
ALubyte PitchKey;
ALbyte PitchCorrection;
ALenum SampleType;
- struct ALfontsound *Link;
+
+ ATOMIC(struct ALfontsound*) Link;
/* NOTE: Each map entry contains *four* (4) ALsfmodulator objects. */
UIntMap ModulatorMap;