Disable MiNT thread usage and use hw access for updating DMA audio pointers
authorPatrice Mandin <patmandin@gmail.com>
Tue, 12 Sep 2006 19:23:51 +0000
changeset 2022649e9ac39f74
parent 2021 4ddfbe55e105
child 2023 b7d426b28c18
Disable MiNT thread usage and use hw access for updating DMA audio pointers
src/audio/mint/SDL_mintaudio_xbios.c
     1.1 --- a/src/audio/mint/SDL_mintaudio_xbios.c	Tue Sep 12 08:45:48 2006 +0000
     1.2 +++ b/src/audio/mint/SDL_mintaudio_xbios.c	Tue Sep 12 19:23:51 2006 +0000
     1.3 @@ -83,7 +83,8 @@
     1.4      unsigned long dummy;
     1.5      const char *envr = SDL_getenv("SDL_AUDIODRIVER");
     1.6  
     1.7 -    SDL_MintAudio_mint_present = (Getcookie(C_MiNT, &dummy) == C_FOUND);
     1.8 +    /*SDL_MintAudio_mint_present = (Getcookie(C_MiNT, &dummy) == C_FOUND);*/
     1.9 +    SDL_MintAudio_mint_present = SDL_FALSE;
    1.10  
    1.11      /* We can't use XBIOS in interrupt with Magic, don't know about thread */
    1.12      if (Getcookie(C_MagX, &dummy) == C_FOUND) {
    1.13 @@ -467,7 +468,8 @@
    1.14      } else {
    1.15          /* Install interrupt */
    1.16          Jdisint(MFP_DMASOUND);
    1.17 -        Xbtimer(XB_TIMERA, 8, 1, SDL_MintAudio_XbiosInterrupt);
    1.18 +        /*Xbtimer(XB_TIMERA, 8, 1, SDL_MintAudio_XbiosInterrupt);*/
    1.19 +        Xbtimer(XB_TIMERA, 8, 1, SDL_MintAudio_Dma8Interrupt);
    1.20          Jenabint(MFP_DMASOUND);
    1.21  
    1.22          if (Setinterrupt(SI_TIMERA, SI_PLAY) < 0) {