diff options
author | Takamichi Horikawa <takamichiho@gmail.com> | 2017-08-29 23:40:31 +0900 |
---|---|---|
committer | Takamichi Horikawa <takamichiho@gmail.com> | 2017-08-29 23:40:31 +0900 |
commit | 81f406e25f46affd2e740de4cbbd8d72529a8168 (patch) | |
tree | 69e66d907313f5b738f3dcc3115bda371d003f31 | |
parent | 15ee2c4c0f18a8ab2963f0d9ac5ffab6d8ace777 (diff) |
fmp: ssg envelope init fix
-rw-r--r-- | fmdriver/fmdriver_fmp.c | 7 |
1 files changed, 7 insertions, 0 deletions
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;
|