comparison 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
comparison
equal deleted inserted replaced
3855:b2d9881c8c88 3856:492ff98822fd
80 static int Audio_Available(void) 80 static int Audio_Available(void)
81 { 81 {
82 unsigned long dummy; 82 unsigned long dummy;
83 const char *envr = SDL_getenv("SDL_AUDIODRIVER"); 83 const char *envr = SDL_getenv("SDL_AUDIODRIVER");
84 84
85 SDL_MintAudio_mint_present = (Getcookie(C_MiNT, &dummy) == C_FOUND); 85 /*SDL_MintAudio_mint_present = (Getcookie(C_MiNT, &dummy) == C_FOUND);*/
86 SDL_MintAudio_mint_present = SDL_FALSE;
86 87
87 /* We can't use XBIOS in interrupt with Magic, don't know about thread */ 88 /* We can't use XBIOS in interrupt with Magic, don't know about thread */
88 if (Getcookie(C_MagX, &dummy) == C_FOUND) { 89 if (Getcookie(C_MagX, &dummy) == C_FOUND) {
89 return(0); 90 return(0);
90 } 91 }
435 if (SDL_MintAudio_mint_present) { 436 if (SDL_MintAudio_mint_present) {
436 SDL_MintAudio_thread_pid = tfork(SDL_MintAudio_Thread, 0); 437 SDL_MintAudio_thread_pid = tfork(SDL_MintAudio_Thread, 0);
437 } else { 438 } else {
438 /* Install interrupt */ 439 /* Install interrupt */
439 Jdisint(MFP_DMASOUND); 440 Jdisint(MFP_DMASOUND);
440 Xbtimer(XB_TIMERA, 8, 1, SDL_MintAudio_XbiosInterrupt); 441 /*Xbtimer(XB_TIMERA, 8, 1, SDL_MintAudio_XbiosInterrupt);*/
442 Xbtimer(XB_TIMERA, 8, 1, SDL_MintAudio_Dma8Interrupt);
441 Jenabint(MFP_DMASOUND); 443 Jenabint(MFP_DMASOUND);
442 444
443 if (Setinterrupt(SI_TIMERA, SI_PLAY)<0) { 445 if (Setinterrupt(SI_TIMERA, SI_PLAY)<0) {
444 DEBUG_PRINT((DEBUG_NAME "Setinterrupt() failed\n")); 446 DEBUG_PRINT((DEBUG_NAME "Setinterrupt() failed\n"));
445 } 447 }