aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/midi/fluidsynth.c
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/midi/fluidsynth.c')
-rw-r--r--Alc/midi/fluidsynth.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/Alc/midi/fluidsynth.c b/Alc/midi/fluidsynth.c
index 7855132a..35092966 100644
--- a/Alc/midi/fluidsynth.c
+++ b/Alc/midi/fluidsynth.c
@@ -166,6 +166,14 @@ static int FPreset_noteOn(fluid_preset_t *preset, fluid_synth_t *synth, int chan
fluid_voice_gen_set(voice, 5, sound->ModLfoToPitch);
fluid_voice_gen_set(voice, 6, sound->VibratoLfoToPitch);
fluid_voice_gen_set(voice, 7, sound->ModEnvToPitch);
+ fluid_voice_gen_set(voice, 25, sound->ModEnv.DelayTime);
+ fluid_voice_gen_set(voice, 26, sound->ModEnv.AttackTime);
+ fluid_voice_gen_set(voice, 27, sound->ModEnv.HoldTime);
+ fluid_voice_gen_set(voice, 28, sound->ModEnv.DecayTime);
+ fluid_voice_gen_set(voice, 29, sound->ModEnv.SustainVol);
+ fluid_voice_gen_set(voice, 30, sound->ModEnv.ReleaseTime);
+ fluid_voice_gen_set(voice, 31, sound->ModEnv.KeyToHoldTime);
+ fluid_voice_gen_set(voice, 32, sound->ModEnv.KeyToDecayTime);
fluid_voice_gen_set(voice, 33, sound->VolEnv.DelayTime);
fluid_voice_gen_set(voice, 34, sound->VolEnv.AttackTime);
fluid_voice_gen_set(voice, 35, sound->VolEnv.HoldTime);