diff options
author | Chris Robinson <[email protected]> | 2013-12-25 19:13:59 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2013-12-25 19:13:59 -0800 |
commit | 94ddc5cb1889a42c9ffe98b79e431b596a9563df (patch) | |
tree | b513f8c94347fb697775e286c735ee79dcc201dd /OpenAL32/Include/alMidi.h | |
parent | cb3f82a4bf50aef28353629f2f7d6f45b5d420dc (diff) |
Add a new fontsound object type
This is basically a combined preset and intrument zone with sample header.
Diffstat (limited to 'OpenAL32/Include/alMidi.h')
-rw-r--r-- | OpenAL32/Include/alMidi.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/OpenAL32/Include/alMidi.h b/OpenAL32/Include/alMidi.h index b37a6546..374940c1 100644 --- a/OpenAL32/Include/alMidi.h +++ b/OpenAL32/Include/alMidi.h @@ -84,6 +84,45 @@ inline struct ALsfinstrument *RemoveInstrument(ALCdevice *device, ALuint id) void ReleaseALInstruments(ALCdevice *device); +typedef struct ALfontsound { + volatile RefCount ref; + + ALint MinKey, MaxKey; + ALint MinVelocity, MaxVelocity; + + ALsfgenerator *Generators; + ALsizei NumGenerators; + ALsizei GeneratorsMax; + + ALsfmodulator *Modulators; + ALsizei NumModulators; + ALsizei ModulatorsMax; + + ALuint Start; + ALuint End; + ALuint LoopStart; + ALuint LoopEnd; + ALuint SampleRate; + ALubyte PitchKey; + ALbyte PitchCorrection; + ALint SampleLink; + ALenum SampleType; + + ALuint id; +} ALfontsound; + +void ALfontsound_Construct(ALfontsound *self); +void ALfontsound_Destruct(ALfontsound *self); + + +inline struct ALfontsound *LookupFontsound(ALCdevice *device, ALuint id) +{ return (struct ALfontsound*)LookupUIntMapKey(&device->FontsoundMap, id); } +inline struct ALfontsound *RemoveFontsound(ALCdevice *device, ALuint id) +{ return (struct ALfontsound*)RemoveUIntMapKey(&device->FontsoundMap, id); } + +void ReleaseALFontsounds(ALCdevice *device); + + typedef struct ALsfpreset { volatile RefCount ref; |