From: Neils Wagenaar Date: Sat, 16 Aug 2003 17:28:09 +0000 (+0000) Subject: Mostly changes to support SDL sound system X-Git-Tag: 1.0.5~28 X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=79c9a3cd4285f26c07260fb4c6484549a366a496;p=virtualjaguar Mostly changes to support SDL sound system --- 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)