From 06dd9f9b8c58a974d4cad1cf367e987d57b057d0 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 29 Dec 2013 05:36:05 -0800 Subject: Lock the device while selecting soundfonts --- OpenAL32/alMidi.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'OpenAL32') 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); } -- cgit v1.2.3