From 81f406e25f46affd2e740de4cbbd8d72529a8168 Mon Sep 17 00:00:00 2001 From: Takamichi Horikawa Date: Tue, 29 Aug 2017 23:40:31 +0900 Subject: fmp: ssg envelope init fix --- fmdriver/fmdriver_fmp.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'fmdriver') diff --git a/fmdriver/fmdriver_fmp.c b/fmdriver/fmdriver_fmp.c index 8f2a7af..c57b975 100644 --- a/fmdriver/fmdriver_fmp.c +++ b/fmdriver/fmdriver_fmp.c @@ -2955,6 +2955,13 @@ static void fmp_init_parts(struct fmdriver_work *work, spart->u.ssg.env.decay_rate = 0xff; spart->u.ssg.env.sustain_lv = 0xff; spart->u.ssg.env.release_rate = 0x0a; + // not in original + spart->u.ssg.envbak.startvol = 0xff; + spart->u.ssg.envbak.attack_rate = 0xff; + spart->u.ssg.envbak.decay_rate = 0xff; + spart->u.ssg.envbak.sustain_lv = 0xff; + spart->u.ssg.envbak.release_rate = 0x0a; + // end fpart->current_vol = 0x1a; fpart->actual_vol = 0x1a; spart->current_vol = 0x0e; -- cgit v1.2.3