diff options
author | Chris Robinson <[email protected]> | 2013-12-29 05:36:05 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2013-12-29 05:36:05 -0800 |
commit | 06dd9f9b8c58a974d4cad1cf367e987d57b057d0 (patch) | |
tree | 4aa80aa895e7efc4e7ab1e7e0d78a51dcbafc240 /OpenAL32/alMidi.c | |
parent | 4e73b95fc05b85da550910318df6c04eb21edc4d (diff) |
Lock the device while selecting soundfonts
Diffstat (limited to 'OpenAL32/alMidi.c')
-rw-r--r-- | OpenAL32/alMidi.c | 2 |
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); } |