Disable MiNT thread usage and use hw access for updating DMA audio pointers SDL-1.2
authorPatrice Mandin <patmandin@gmail.com>
Tue, 12 Sep 2006 19:20:50 +0000
branchSDL-1.2
changeset 3856 492ff98822fd
parent 3855 b2d9881c8c88
child 3857 be01e0b82dca
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	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) {