aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/alMidi.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2013-12-29 05:36:05 -0800
committerChris Robinson <[email protected]>2013-12-29 05:36:05 -0800
commit06dd9f9b8c58a974d4cad1cf367e987d57b057d0 (patch)
tree4aa80aa895e7efc4e7ab1e7e0d78a51dcbafc240 /OpenAL32/alMidi.c
parent4e73b95fc05b85da550910318df6c04eb21edc4d (diff)
Lock the device while selecting soundfonts
Diffstat (limited to 'OpenAL32/alMidi.c')
-rw-r--r--OpenAL32/alMidi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/OpenAL32/alMidi.c b/OpenAL32/alMidi.c
index 1068e852..f95883dd 100644
--- a/OpenAL32/alMidi.c
+++ b/OpenAL32/alMidi.c
@@ -73,7 +73,9 @@ AL_API void AL_APIENTRY alMidiSoundfontsSOFT(ALsizei count, const ALuint *ids)
alSetError(context, AL_INVALID_OPERATION);
else
{
+ ALCdevice_Lock(device);
err = V(synth,selectSoundfonts)(device, count, ids);
+ ALCdevice_Unlock(device);
if(err != AL_NO_ERROR)
alSetError(context, err);
}