diff options
author | Chris Robinson <[email protected]> | 2013-12-29 02:40:12 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2013-12-29 02:40:12 -0800 |
commit | deecbbc55d44a0043c92464949c83c9722d6be00 (patch) | |
tree | c00c75c006cce9167ecefe32fe9fa67cd59e8da6 /Alc/midi/base.c | |
parent | d9aedc14167c7f5c4fc02f95de6be89ef8db63c2 (diff) |
Add modulation envelope properties
Diffstat (limited to 'Alc/midi/base.c')
-rw-r--r-- | Alc/midi/base.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Alc/midi/base.c b/Alc/midi/base.c index 00114f59..7eb2d2c5 100644 --- a/Alc/midi/base.c +++ b/Alc/midi/base.c @@ -299,6 +299,15 @@ void ALfontsound_Construct(ALfontsound *self) self->VibratoLfoToPitch = 0; self->ModEnvToPitch = 0; + self->ModEnv.DelayTime = -12000; + self->ModEnv.AttackTime = -12000; + self->ModEnv.HoldTime = -12000; + self->ModEnv.DecayTime = -12000; + self->ModEnv.SustainVol = 0; + self->ModEnv.ReleaseTime = -12000; + self->ModEnv.KeyToHoldTime = 0; + self->ModEnv.KeyToDecayTime = 0; + self->VolEnv.DelayTime = -12000; self->VolEnv.AttackTime = -12000; self->VolEnv.HoldTime = -12000; |