diff options
author | Chris Robinson <[email protected]> | 2014-01-17 00:36:33 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2014-01-17 00:36:33 -0800 |
commit | 08ba5d9dba798c3985bad425906564431b4f6c0d (patch) | |
tree | 3c4e774f5cb2e99b7d3c4f46b56afbe76579ecce /OpenAL32/Include/alMidi.h | |
parent | e118ac93a01c15adee8e6d81a99dda73a985c54d (diff) |
Use a proper struct for envelope properties
Diffstat (limited to 'OpenAL32/Include/alMidi.h')
-rw-r--r-- | OpenAL32/Include/alMidi.h | 33 |
1 files changed, 13 insertions, 20 deletions
diff --git a/OpenAL32/Include/alMidi.h b/OpenAL32/Include/alMidi.h index b24f43a0..24e6675f 100644 --- a/OpenAL32/Include/alMidi.h +++ b/OpenAL32/Include/alMidi.h @@ -19,6 +19,17 @@ typedef struct ALsfmodulator { ALenum Dest; } ALsfmodulator; +typedef struct ALenvelope { + ALint DelayTime; + ALint AttackTime; + ALint HoldTime; + ALint DecayTime; + ALint SustainAttn; + ALint ReleaseTime; + ALint KeyToHoldTime; + ALint KeyToDecayTime; +} ALenvelope; + typedef struct ALfontsound { volatile RefCount ref; @@ -50,26 +61,8 @@ typedef struct ALfontsound { ALint Frequency; } VibratoLfo; - struct { - ALint DelayTime; - ALint AttackTime; - ALint HoldTime; - ALint DecayTime; - ALint SustainVol; - ALint ReleaseTime; - ALint KeyToHoldTime; - ALint KeyToDecayTime; - } ModEnv; - struct { - ALint DelayTime; - ALint AttackTime; - ALint HoldTime; - ALint DecayTime; - ALint SustainVol; - ALint ReleaseTime; - ALint KeyToHoldTime; - ALint KeyToDecayTime; - } VolEnv; + ALenvelope ModEnv; + ALenvelope VolEnv; ALint Attenuation; |