aboutsummaryrefslogtreecommitdiff
path: root/fmdriver
diff options
context:
space:
mode:
authorTakamichi Horikawa <takamichiho@gmail.com>2017-08-22 00:07:24 +0900
committerTakamichi Horikawa <takamichiho@gmail.com>2017-08-22 00:07:24 +0900
commitf8a9839f5c133adbba53e5a3415f3b932bb81067 (patch)
tree2c78578827a26b7888629e817c3286bfbf6bfcc0 /fmdriver
parentd6edfce6fe7b35c66293e2ed895e302a2078b746 (diff)
PMD: Fixed SSG bug when using old envelope with AL=0
Diffstat (limited to 'fmdriver')
-rw-r--r--fmdriver/fmdriver_pmd.c2
1 files changed, 1 insertions, 1 deletions
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] =