changeset 2022:649e9ac39f74

Disable MiNT thread usage and use hw access for updating DMA audio pointers
author Patrice Mandin <patmandin@gmail.com>
date Tue, 12 Sep 2006 19:23:51 +0000
parents 4ddfbe55e105
children b7d426b28c18
files src/audio/mint/SDL_mintaudio_xbios.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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) {