Disable MiNT thread usage and use hw access for updating DMA audio pointers
authorPatrice Mandin <patmandin@gmail.com>
Tue, 12 Sep 2006 19:23:51 +0000
changeset 2022 649e9ac39f74
parent 2021 4ddfbe55e105
child 2023 b7d426b28c18
Disable MiNT thread usage and use hw access for updating DMA audio pointers
src/audio/mint/SDL_mintaudio_xbios.c
--- a/src/audio/mint/SDL_mintaudio_xbios.c	Tue Sep 12 08:45:48 2006 +0000
+++ b/src/audio/mint/SDL_mintaudio_xbios.c	Tue Sep 12 19:23:51 2006 +0000
@@ -83,7 +83,8 @@
     unsigned long dummy;
     const char *envr = SDL_getenv("SDL_AUDIODRIVER");
 
-    SDL_MintAudio_mint_present = (Getcookie(C_MiNT, &dummy) == C_FOUND);
+    /*SDL_MintAudio_mint_present = (Getcookie(C_MiNT, &dummy) == C_FOUND);*/
+    SDL_MintAudio_mint_present = SDL_FALSE;
 
     /* We can't use XBIOS in interrupt with Magic, don't know about thread */
     if (Getcookie(C_MagX, &dummy) == C_FOUND) {
@@ -467,7 +468,8 @@
     } else {
         /* Install interrupt */
         Jdisint(MFP_DMASOUND);
-        Xbtimer(XB_TIMERA, 8, 1, SDL_MintAudio_XbiosInterrupt);
+        /*Xbtimer(XB_TIMERA, 8, 1, SDL_MintAudio_XbiosInterrupt);*/
+        Xbtimer(XB_TIMERA, 8, 1, SDL_MintAudio_Dma8Interrupt);
         Jenabint(MFP_DMASOUND);
 
         if (Setinterrupt(SI_TIMERA, SI_PLAY) < 0) {