diff options
author | Chris Robinson <[email protected]> | 2014-01-04 05:30:57 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2014-01-04 05:30:57 -0800 |
commit | 540a99e71fa4ce3de8049656629861aa0a7e5568 (patch) | |
tree | 34651c72d9c31bb5a86f9506bfc301d84897c239 /Alc/midi/base.h | |
parent | bb54743425c92856347c8c3f04ac07e319ff0fcd (diff) |
Allow "deleting" the default soundfont
The ID remains valid and the soundfont will be reloaded as needed, but this
provides a way for the application to clear up the soundfont memory.
Diffstat (limited to 'Alc/midi/base.h')
-rw-r--r-- | Alc/midi/base.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Alc/midi/base.h b/Alc/midi/base.h index 72e83b7d..25bd35dd 100644 --- a/Alc/midi/base.h +++ b/Alc/midi/base.h @@ -53,6 +53,7 @@ typedef struct MidiSynth { void MidiSynth_Construct(MidiSynth *self, ALCdevice *device); void MidiSynth_Destruct(MidiSynth *self); struct ALsoundfont *MidiSynth_getDefSoundfont(ALCcontext *context); +void MidiSynth_deleteSoundfont(ALCdevice *device, struct ALsoundfont *sfont); ALenum MidiSynth_selectSoundfonts(MidiSynth *self, ALCcontext *context, ALsizei count, const ALuint *ids); inline void MidiSynth_setGain(MidiSynth *self, ALfloat gain) { self->Gain = gain; } inline ALfloat MidiSynth_getGain(const MidiSynth *self) { return self->Gain; } |