Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

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

…inters
  • Loading branch information
pmandin committed Sep 12, 2006
1 parent 11eeaed commit 9459cb225e5017ce8cf48a44159eeda8ec547df5
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/audio/mint/SDL_mintaudio_xbios.c
@@ -83,7 +83,8 @@ Audio_Available(void)
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 @@ Mint_InitAudio(_THIS, SDL_AudioSpec * spec)
} 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) {

0 comments on commit 9459cb2

Please sign in to comment.