diff options
author | Chris Robinson <[email protected]> | 2013-12-29 05:44:18 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2013-12-29 05:44:18 -0800 |
commit | 37d183efc0cd9cf3d64b0cdff5b4ae115969f865 (patch) | |
tree | c3e3509369a161d5475170cdc44ccaa52f0bc6dc /OpenAL32/alMidi.c | |
parent | 06dd9f9b8c58a974d4cad1cf367e987d57b057d0 (diff) |
Update soundfont selection functions
A filename is no longer specified, and alMidiSoundfontsSOFT is renamed to
alMidiSoundfontvSOFT.
Diffstat (limited to 'OpenAL32/alMidi.c')
-rw-r--r-- | OpenAL32/alMidi.c | 28 |
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; |