From cac332e52bbb0e9eab5ab5197d4b8d10bac1d829 Mon Sep 17 00:00:00 2001 From: kazblox Date: Sun, 22 Nov 2015 10:54:03 -0500 Subject: [PATCH 1/2] fmopl: partially revert ksl order fix it only applies to opl3 --- src/devices/sound/fmopl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/devices/sound/fmopl.cpp b/src/devices/sound/fmopl.cpp index 618cd3bafc6..e368e3a077d 100644 --- a/src/devices/sound/fmopl.cpp +++ b/src/devices/sound/fmopl.cpp @@ -390,7 +390,7 @@ static const UINT32 ksl_tab[8*16]= #undef DV /* 0 / 3.0 / 1.5 / 6.0 dB/OCT */ -static const UINT32 ksl_shift[4] = { 31, 2, 1, 0 }; +static const UINT32 ksl_shift[4] = { 31, 1, 2, 0 }; /* sustain level table (3dB per step) */ From 209055bb11ab51751929f26e55ae859d3d8f989e Mon Sep 17 00:00:00 2001 From: kazblox Date: Sun, 22 Nov 2015 11:36:30 -0500 Subject: [PATCH 2/2] ymf262: I fscked up so hard --- src/devices/sound/ymf262.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/devices/sound/ymf262.cpp b/src/devices/sound/ymf262.cpp index 7506446ccf8..5e4349e2f5b 100644 --- a/src/devices/sound/ymf262.cpp +++ b/src/devices/sound/ymf262.cpp @@ -343,7 +343,7 @@ static const UINT32 ksl_tab[8*16]= #undef DV /* 0 / 3.0 / 1.5 / 6.0 dB/OCT */ -static const UINT32 ksl_shift[4] = { 31, 2, 1, 0 }; +static const UINT32 ksl_shift[4] = { 31, 1, 2, 0 }; /* sustain level table (3dB per step) */