]> Shamusworld >> Repos - virtualjaguar/commitdiff
Mostly changes to support SDL sound system
authorNeils Wagenaar <sdlemu@ngemu.com>
Sat, 16 Aug 2003 17:28:09 +0000 (17:28 +0000)
committerNeils Wagenaar <sdlemu@ngemu.com>
Sat, 16 Aug 2003 17:28:09 +0000 (17:28 +0000)
src/dsp.cpp

index b1f54d4d7755fac20f8e63bcda2f7bd3f2cffb07..b2674d64cfd1dc7dd9dd0e4d845449ffadf3dc18 100644 (file)
@@ -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)