From 7d04780880aa07289ff6d5cb7390b7070faf8ba3 Mon Sep 17 00:00:00 2001 From: ekeeke31 Date: Thu, 16 Sep 2010 11:36:09 +0000 Subject: [PATCH] disabled interrupt during YM2612 table initialization to prevent pow() function returning wrong values: fixes random sound issues on game startup --- source/sound/ym2612.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/source/sound/ym2612.c b/source/sound/ym2612.c index 1a12cdb..1aa3b79 100644 --- a/source/sound/ym2612.c +++ b/source/sound/ym2612.c @@ -1827,10 +1827,14 @@ static void init_tables(void) signed int n; double o,m; +#ifdef NGC + u32 level = IRQ_Disable(); +#endif + /* build Linear Power Table */ for (x=0; x