summaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
author Olivier Galibert <galibert@pobox.com>2015-11-20 06:42:26 +0100
committer Olivier Galibert <galibert@pobox.com>2015-11-20 06:42:26 +0100
commitd5230858702d43253a67bc95f1463dcc9fc029b9 (patch)
tree3ca8075af9cc9159429219e2c8d45d6269a325b7 /src
parente3cd55dcce9499f20d35fce77ad24f4ccc5d00fc (diff)
parente3d1852e6dfdedbd6b20dd88f957200bfcc17bd7 (diff)
Merge pull request #472 from kazblox/opl_playaround
fix ksl shift bits in OPL chips
Diffstat (limited to 'src')
-rw-r--r--src/devices/sound/fmopl.cpp2
-rw-r--r--src/devices/sound/ymf262.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/sound/fmopl.cpp b/src/devices/sound/fmopl.cpp
index e368e3a077d..618cd3bafc6 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, 1, 2, 0 };
+static const UINT32 ksl_shift[4] = { 31, 2, 1, 0 };
/* sustain level table (3dB per step) */
diff --git a/src/devices/sound/ymf262.cpp b/src/devices/sound/ymf262.cpp
index 5e4349e2f5b..7506446ccf8 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, 1, 2, 0 };
+static const UINT32 ksl_shift[4] = { 31, 2, 1, 0 };
/* sustain level table (3dB per step) */