aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/midi/base.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-01-04 05:30:57 -0800
committerChris Robinson <[email protected]>2014-01-04 05:30:57 -0800
commit540a99e71fa4ce3de8049656629861aa0a7e5568 (patch)
tree34651c72d9c31bb5a86f9506bfc301d84897c239 /Alc/midi/base.h
parentbb54743425c92856347c8c3f04ac07e319ff0fcd (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.h1
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; }