diff src/audio/mint/SDL_mintaudio_xbios.c @ 3856:492ff98822fd SDL-1.2

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:20:50 +0000
parents 405a192b68e7
children e958a003b69b
line wrap: on
line diff
--- a/src/audio/mint/SDL_mintaudio_xbios.c	Fri Sep 08 19:17:03 2006 +0000
+++ b/src/audio/mint/SDL_mintaudio_xbios.c	Tue Sep 12 19:20:50 2006 +0000
@@ -82,7 +82,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) {
@@ -437,7 +438,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) {