X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdsp.cpp;h=b2674d64cfd1dc7dd9dd0e4d845449ffadf3dc18;hb=7313f26c4f1b7a41c7aa87c46b2b33384d4c67f7;hp=b1f54d4d7755fac20f8e63bcda2f7bd3f2cffb07;hpb=fa566a2c8ec532eb5325b4d5a663fb2a7d72adc6;p=virtualjaguar 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)