atari:audio:stfa: no need to switch to supervisor mode SDL-1.2
authorPatrice Mandin
Mon, 28 Jul 2014 20:40:41 +0200
branchSDL-1.2
changeset 90211691f05e9531
parent 9020 d64118890bdb
child 9022 de368e497138
atari:audio:stfa: no need to switch to supervisor mode
src/audio/mint/SDL_mintaudio_stfa.c
     1.1 --- a/src/audio/mint/SDL_mintaudio_stfa.c	Mon Jul 28 17:48:22 2014 +0200
     1.2 +++ b/src/audio/mint/SDL_mintaudio_stfa.c	Mon Jul 28 20:40:41 2014 +0200
     1.3 @@ -38,7 +38,6 @@
     1.4  #include "../SDL_sysaudio.h"
     1.5  
     1.6  #include "../../video/ataricommon/SDL_atarimxalloc_c.h"
     1.7 -#include "../../video/ataricommon/SDL_atarisuper.h"
     1.8  
     1.9  #include "SDL_mintaudio.h"
    1.10  #include "SDL_mintaudio_stfa.h"
    1.11 @@ -160,32 +159,17 @@
    1.12  
    1.13  static void Mint_LockAudio(_THIS)
    1.14  {
    1.15 -	void *oldpile;
    1.16 -
    1.17 -	/* Stop replay */
    1.18 -	oldpile=(void *)Super(0);
    1.19  	cookie_stfa->sound_enable=STFA_PLAY_DISABLE;
    1.20 -	SuperToUser(oldpile);
    1.21  }
    1.22  
    1.23  static void Mint_UnlockAudio(_THIS)
    1.24  {
    1.25 -	void *oldpile;
    1.26 -
    1.27 -	/* Restart replay */
    1.28 -	oldpile=(void *)Super(0);
    1.29  	cookie_stfa->sound_enable=STFA_PLAY_ENABLE|STFA_PLAY_REPEAT;
    1.30 -	SuperToUser(oldpile);
    1.31  }
    1.32  
    1.33  static void Mint_CloseAudio(_THIS)
    1.34  {
    1.35 -	void *oldpile;
    1.36 -
    1.37 -	/* Stop replay */
    1.38 -	oldpile=(void *)Super(0);
    1.39  	cookie_stfa->sound_enable=STFA_PLAY_DISABLE;
    1.40 -	SuperToUser(oldpile);
    1.41  
    1.42  	/* Wait if currently playing sound */
    1.43  	while (SDL_MintAudio_mutex != 0) {
    1.44 @@ -242,12 +226,9 @@
    1.45  static void Mint_InitAudio(_THIS, SDL_AudioSpec *spec)
    1.46  {
    1.47  	void *buffer;
    1.48 -	void *oldpile;
    1.49  
    1.50  	buffer = SDL_MintAudio_audiobuf[SDL_MintAudio_numbuf];
    1.51  
    1.52 -	oldpile=(void *)Super(0);
    1.53 -
    1.54  	/* Stop replay */
    1.55  	cookie_stfa->sound_enable=STFA_PLAY_DISABLE;
    1.56  
    1.57 @@ -284,8 +265,6 @@
    1.58  	/* Restart replay */
    1.59  	cookie_stfa->sound_enable=STFA_PLAY_ENABLE|STFA_PLAY_REPEAT;
    1.60  
    1.61 -	SuperToUser(oldpile);
    1.62 -
    1.63  	DEBUG_PRINT((DEBUG_NAME "hardware initialized\n"));
    1.64  }
    1.65