diff options
author | Chris Robinson <[email protected]> | 2013-12-18 23:12:44 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2013-12-18 23:12:44 -0800 |
commit | 73fc4592ab8fd3c3bbff608ccfbd8def756def06 (patch) | |
tree | 806efdfea428a6dd6dcb27a868aa659a82a5b3c7 /OpenAL32/alMidi.c | |
parent | 8083fb5be7943e6c5ade6c062ae78559c0826472 (diff) |
Make alIsSoundfontSOFT check soundfont IDs
Diffstat (limited to 'OpenAL32/alMidi.c')
-rw-r--r-- | OpenAL32/alMidi.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/OpenAL32/alMidi.c b/OpenAL32/alMidi.c index 74e37267..b311d390 100644 --- a/OpenAL32/alMidi.c +++ b/OpenAL32/alMidi.c @@ -115,24 +115,23 @@ done: ALCcontext_DecRef(context); } - -AL_API ALboolean AL_APIENTRY alIsSoundfontSOFT(const char *filename) +AL_API ALboolean AL_APIENTRY alIsSoundfontSOFT(ALuint id) { - ALCdevice *device; ALCcontext *context; ALboolean ret; context = GetContextRef(); if(!context) return AL_FALSE; - device = context->Device; - ret = V(device->Synth,isSoundfont)(filename); + ret = ((!id || LookupSfont(context->Device, id)) ? + AL_TRUE : AL_FALSE); ALCcontext_DecRef(context); return ret; } + AL_API void AL_APIENTRY alMidiSoundfontSOFT(const char *filename) { ALCdevice *device; |