Commit d32e462e authored by Patrice Mandin's avatar Patrice Mandin

Disable MiNT thread usage and use hw access for updating DMA audio pointers

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402075
parent ac911fde
...@@ -83,7 +83,8 @@ Audio_Available(void) ...@@ -83,7 +83,8 @@ Audio_Available(void)
unsigned long dummy; unsigned long dummy;
const char *envr = SDL_getenv("SDL_AUDIODRIVER"); 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 */ /* We can't use XBIOS in interrupt with Magic, don't know about thread */
if (Getcookie(C_MagX, &dummy) == C_FOUND) { if (Getcookie(C_MagX, &dummy) == C_FOUND) {
...@@ -467,7 +468,8 @@ Mint_InitAudio(_THIS, SDL_AudioSpec * spec) ...@@ -467,7 +468,8 @@ Mint_InitAudio(_THIS, SDL_AudioSpec * spec)
} else { } else {
/* Install interrupt */ /* Install interrupt */
Jdisint(MFP_DMASOUND); 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); Jenabint(MFP_DMASOUND);
if (Setinterrupt(SI_TIMERA, SI_PLAY) < 0) { if (Setinterrupt(SI_TIMERA, SI_PLAY) < 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment