From 5aacd1e4898ce926310280820e7d4013e115a6b8 Mon Sep 17 00:00:00 2001 From: Phil Bennett Date: Fri, 26 Jul 2013 16:43:03 +0000 Subject: [PATCH] ym2413.c - Reverted KSL value order to 0, 1.5, 3.0, 6.0dB/oct after testing with a real YM2413 [Wouter Vermaelen] --- src/emu/sound/ym2413.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/emu/sound/ym2413.c b/src/emu/sound/ym2413.c index e900d71b28a..72f8d5a9e7e 100644 --- a/src/emu/sound/ym2413.c +++ b/src/emu/sound/ym2413.c @@ -323,8 +323,8 @@ 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 }; +/* 0 / 1.5 / 3.0 / 6.0 dB/OCT, confirmed on a real YM2413 (the application manual is incorrect) */ +static const UINT32 ksl_shift[4] = { 31, 2, 1, 0 }; /* sustain level table (3dB per step) */