summaryrefslogtreecommitdiffstats
path: root/OpenAL32/Include/alMidi.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-01-02 14:43:44 -0800
committerChris Robinson <[email protected]>2014-01-02 14:43:44 -0800
commitf790d0e91f425e3ea8902b462fdb42094242ca9b (patch)
treec964f69bfd4b25ca73119ce6347a28e931f92c2a /OpenAL32/Include/alMidi.h
parent49c17ad520d25075b7988c51705198a3cb834e93 (diff)
Use a uint map for modulators
Diffstat (limited to 'OpenAL32/Include/alMidi.h')
-rw-r--r--OpenAL32/Include/alMidi.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/OpenAL32/Include/alMidi.h b/OpenAL32/Include/alMidi.h
index e3b4ef26..bd9b4bac 100644
--- a/OpenAL32/Include/alMidi.h
+++ b/OpenAL32/Include/alMidi.h
@@ -89,9 +89,7 @@ typedef struct ALfontsound {
ALenum SampleType;
struct ALfontsound *Link;
- ALsfmodulator *Modulators;
- ALsizei NumModulators;
- ALsizei ModulatorsMax;
+ UIntMap ModulatorMap;
ALuint id;
} ALfontsound;
@@ -103,6 +101,11 @@ inline struct ALfontsound *LookupFontsound(ALCdevice *device, ALuint id)
inline struct ALfontsound *RemoveFontsound(ALCdevice *device, ALuint id)
{ return (struct ALfontsound*)RemoveUIntMapKey(&device->FontsoundMap, id); }
+inline struct ALsfmodulator *LookupModulator(ALfontsound *sound, ALuint id)
+{ return (struct ALsfmodulator*)LookupUIntMapKey(&sound->ModulatorMap, id); }
+inline struct ALsfmodulator *RemoveModulator(ALfontsound *sound, ALuint id)
+{ return (struct ALsfmodulator*)RemoveUIntMapKey(&sound->ModulatorMap, id); }
+
void ReleaseALFontsounds(ALCdevice *device);