aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/alMidi.c
diff options
context:
space:
mode:
Diffstat (limited to 'OpenAL32/alMidi.c')
-rw-r--r--OpenAL32/alMidi.c28
1 files changed, 3 insertions, 25 deletions
diff --git a/OpenAL32/alMidi.c b/OpenAL32/alMidi.c
index f95883dd..b0c63f24 100644
--- a/OpenAL32/alMidi.c
+++ b/OpenAL32/alMidi.c
@@ -25,34 +25,12 @@ MidiSynth *SynthCreate(ALCdevice *device)
}
-AL_API void AL_APIENTRY alMidiSoundfontSOFT(const char *filename)
+AL_API void AL_APIENTRY alMidiSoundfontSOFT(ALuint id)
{
- ALCdevice *device;
- ALCcontext *context;
- MidiSynth *synth;
- ALenum err;
-
- context = GetContextRef();
- if(!context) return;
-
- device = context->Device;
- synth = device->Synth;
-
- WriteLock(&synth->Lock);
- if(synth->State == AL_PLAYING || synth->State == AL_PAUSED)
- alSetError(context, AL_INVALID_OPERATION);
- else
- {
- err = V(synth,loadSoundfont)(filename);
- if(err != AL_NO_ERROR)
- alSetError(context, err);
- }
- WriteUnlock(&synth->Lock);
-
- ALCcontext_DecRef(context);
+ alMidiSoundfontvSOFT(1, &id);
}
-AL_API void AL_APIENTRY alMidiSoundfontsSOFT(ALsizei count, const ALuint *ids)
+AL_API void AL_APIENTRY alMidiSoundfontvSOFT(ALsizei count, const ALuint *ids)
{
ALCdevice *device;
ALCcontext *context;