aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/Include
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2013-11-28 03:57:26 -0800
committerChris Robinson <[email protected]>2013-11-28 03:57:45 -0800
commit7794e5366747a402d386f5fd559d0e433ed7cffb (patch)
tree3905b66ebad51cb48a3ebdbaa405defc23961a2f /OpenAL32/Include
parentbb0207d784ee2d5ebbdb6d7c26a4a626e62dbbed (diff)
Be a bit safer with MIDI state changes
Diffstat (limited to 'OpenAL32/Include')
-rw-r--r--OpenAL32/Include/alMidi.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/OpenAL32/Include/alMidi.h b/OpenAL32/Include/alMidi.h
index f2b29df0..d648e179 100644
--- a/OpenAL32/Include/alMidi.h
+++ b/OpenAL32/Include/alMidi.h
@@ -21,6 +21,12 @@ typedef struct MidiSynth {
ALuint SampleRate;
ALdouble SamplesPerTick;
+ /* NOTE: This rwlock is for the state and soundfont. The EventQueue and
+ * related must instead use the device lock as they're used in the mixer
+ * thread.
+ */
+ RWLock Lock;
+
volatile ALenum State;
const struct MidiSynthVtable *vtbl;