From fc928bb75a8b677e101785e50b8c4cf0d39a62aa Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 29 Dec 2013 02:14:10 -0800 Subject: Add volume envelope properties --- OpenAL32/Include/alMain.h | 8 ++++++++ OpenAL32/Include/alMidi.h | 11 +++++++++++ 2 files changed, 19 insertions(+) (limited to 'OpenAL32/Include') diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h index 0cc06df3..2f9440b9 100644 --- a/OpenAL32/Include/alMain.h +++ b/OpenAL32/Include/alMain.h @@ -48,6 +48,14 @@ #define AL_KEY_CORRECTION_SOFT 0x2006 #define AL_SAMPLE_TYPE_SOFT 0x2007 #define AL_FONTSOUND_LINK_SOFT 0x2008 +#define AL_VOLUME_ENV_DELAYTIME_SOFT 0x0021 +#define AL_VOLUME_ENV_ATTACKTIME_SOFT 0x0022 +#define AL_VOLUME_ENV_HOLDTIME_SOFT 0x0023 +#define AL_VOLUME_ENV_DECAYTIME_SOFT 0x0024 +#define AL_VOLUME_ENV_SUSTAINVOLUME_SOFT 0x0025 +#define AL_VOLUME_ENV_RELEASETIME_SOFT 0x0026 +#define AL_VOLUME_ENV_KEY_TO_HOLDTIME_SOFT 0x0027 +#define AL_VOLUME_ENV_KEY_TO_DECAYTIME_SOFT 0x0028 #define AL_KEY_RANGE_SOFT 0x002B #define AL_VELOCITY_RANGE_SOFT 0x002C #define AL_LOOP_MODE_SOFT 0x0036 diff --git a/OpenAL32/Include/alMidi.h b/OpenAL32/Include/alMidi.h index 44d05c1a..cdaebc28 100644 --- a/OpenAL32/Include/alMidi.h +++ b/OpenAL32/Include/alMidi.h @@ -23,6 +23,17 @@ typedef struct ALfontsound { ALint MinKey, MaxKey; ALint MinVelocity, MaxVelocity; + struct { + ALint DelayTime; + ALint AttackTime; + ALint HoldTime; + ALint DecayTime; + ALint SustainVol; + ALint ReleaseTime; + ALint KeyToHoldTime; + ALint KeyToDecayTime; + } VolEnv; + ALuint Start; ALuint End; ALuint LoopStart; -- cgit v1.2.3