aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/alMidi.c
diff options
context:
space:
mode:
Diffstat (limited to 'OpenAL32/alMidi.c')
-rw-r--r--OpenAL32/alMidi.c9
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;