diff options
author | Chris Robinson <[email protected]> | 2013-12-29 02:14:10 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2013-12-29 02:14:10 -0800 |
commit | fc928bb75a8b677e101785e50b8c4cf0d39a62aa (patch) | |
tree | b68eb470eb2ca46cde300041d35926d59abda285 /Alc/midi/base.c | |
parent | 4659669a740a2501b93aa54ae925eeb91ac5e80d (diff) |
Add volume 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 470157e1..11c43d25 100644 --- a/Alc/midi/base.c +++ b/Alc/midi/base.c @@ -295,6 +295,15 @@ void ALfontsound_Construct(ALfontsound *self) self->MinVelocity = 0; self->MaxVelocity = 127; + self->VolEnv.DelayTime = -12000; + self->VolEnv.AttackTime = -12000; + self->VolEnv.HoldTime = -12000; + self->VolEnv.DecayTime = -12000; + self->VolEnv.SustainVol = 0; + self->VolEnv.ReleaseTime = -12000; + self->VolEnv.KeyToHoldTime = 0; + self->VolEnv.KeyToDecayTime = 0; + self->Start = 0; self->End = 0; self->LoopStart = 0; |