From 79c9a3cd4285f26c07260fb4c6484549a366a496 Mon Sep 17 00:00:00 2001 From: Neils Wagenaar Date: Sat, 16 Aug 2003 17:28:09 +0000 Subject: [PATCH] Mostly changes to support SDL sound system --- src/dsp.cpp | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/dsp.cpp b/src/dsp.cpp index b1f54d4..b2674d6 100644 --- a/src/dsp.cpp +++ b/src/dsp.cpp @@ -633,28 +633,29 @@ void dsp_update_register_banks(void) } } + void dsp_check_if_i2s_interrupt_needed(void) { - static uint32 count=8; +// Commenting this shit out helped a little bit... This is probably the reason +// why the sound isn't working right! +/* static uint32 count=8; - int mask; +// int mask; count--; if (count>0) return; - count=4; + count=4;*/ // already in an interrupt handler ? if (dsp_flags & 0x8) return; // get the interrupt mask - mask = (dsp_flags >> 4) & 0x1f; + int mask = (dsp_flags >> 4) & 0x1f; mask |= (dsp_flags >> 11) & 0x20; if (mask & 0x02) - { - dsp_set_irq_line(1,1); - } + dsp_set_irq_line(1, 1); } void dsp_check_irqs(void) -- 2.37.2