summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);
}