From f8a9839f5c133adbba53e5a3415f3b932bb81067 Mon Sep 17 00:00:00 2001 From: Takamichi Horikawa Date: Tue, 22 Aug 2017 00:07:24 +0900 Subject: PMD: Fixed SSG bug when using old envelope with AL=0 --- fmdriver/fmdriver_pmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fmdriver/fmdriver_pmd.c b/fmdriver/fmdriver_pmd.c index 09a95a0..a57a916 100644 --- a/fmdriver/fmdriver_pmd.c +++ b/fmdriver/fmdriver_pmd.c @@ -860,7 +860,7 @@ static uint8_t pmd_part_lfo_init_ssg( if (!al) { // 3008 part->ssg_env_state_old = SSG_ENV_STATE_OLD_SR; - part->ssg_env_vol = part->ssg_env_param[SSG_ENV_PARAM_OLD_AD]; + part->ssg_env_vol = part->ssg_env_param_set[SSG_ENV_PARAM_OLD_AD]; } // 3012 part->ssg_env_param_set[SSG_ENV_PARAM_OLD_SR] = -- cgit v1.2.3