From 1b5c3495c993459c8bf83c183015881cba852a11 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 19 Dec 2013 00:09:55 -0800 Subject: Add methods to create and destroy presets --- OpenAL32/Include/alMidi.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'OpenAL32/Include/alMidi.h') diff --git a/OpenAL32/Include/alMidi.h b/OpenAL32/Include/alMidi.h index 6cc13b20..db6bc730 100644 --- a/OpenAL32/Include/alMidi.h +++ b/OpenAL32/Include/alMidi.h @@ -92,6 +92,14 @@ void ALsfpreset_Construct(ALsfpreset *self); void ALsfpreset_Destruct(ALsfpreset *self); +inline struct ALsfpreset *LookupPreset(ALCdevice *device, ALuint id) +{ return (struct ALsfpreset*)LookupUIntMapKey(&device->PresetMap, id); } +inline struct ALsfpreset *RemovePreset(ALCdevice *device, ALuint id) +{ return (struct ALsfpreset*)RemoveUIntMapKey(&device->PresetMap, id); } + +void ReleaseALPresets(ALCdevice *device); + + typedef struct ALsoundfont { volatile RefCount ref; -- cgit v1.2.3