atari:audio:stfa: no need to switch to supervisor mode SDL-1.2
authorPatrice Mandin <patmandin@gmail.com>
Mon, 28 Jul 2014 20:40:41 +0200
branchSDL-1.2
changeset 9021 1691f05e9531
parent 9020 d64118890bdb
child 9022 de368e497138
atari:audio:stfa: no need to switch to supervisor mode
src/audio/mint/SDL_mintaudio_stfa.c
--- a/src/audio/mint/SDL_mintaudio_stfa.c	Mon Jul 28 17:48:22 2014 +0200
+++ b/src/audio/mint/SDL_mintaudio_stfa.c	Mon Jul 28 20:40:41 2014 +0200
@@ -38,7 +38,6 @@
 #include "../SDL_sysaudio.h"
 
 #include "../../video/ataricommon/SDL_atarimxalloc_c.h"
-#include "../../video/ataricommon/SDL_atarisuper.h"
 
 #include "SDL_mintaudio.h"
 #include "SDL_mintaudio_stfa.h"
@@ -160,32 +159,17 @@
 
 static void Mint_LockAudio(_THIS)
 {
-	void *oldpile;
-
-	/* Stop replay */
-	oldpile=(void *)Super(0);
 	cookie_stfa->sound_enable=STFA_PLAY_DISABLE;
-	SuperToUser(oldpile);
 }
 
 static void Mint_UnlockAudio(_THIS)
 {
-	void *oldpile;
-
-	/* Restart replay */
-	oldpile=(void *)Super(0);
 	cookie_stfa->sound_enable=STFA_PLAY_ENABLE|STFA_PLAY_REPEAT;
-	SuperToUser(oldpile);
 }
 
 static void Mint_CloseAudio(_THIS)
 {
-	void *oldpile;
-
-	/* Stop replay */
-	oldpile=(void *)Super(0);
 	cookie_stfa->sound_enable=STFA_PLAY_DISABLE;
-	SuperToUser(oldpile);
 
 	/* Wait if currently playing sound */
 	while (SDL_MintAudio_mutex != 0) {
@@ -242,12 +226,9 @@
 static void Mint_InitAudio(_THIS, SDL_AudioSpec *spec)
 {
 	void *buffer;
-	void *oldpile;
 
 	buffer = SDL_MintAudio_audiobuf[SDL_MintAudio_numbuf];
 
-	oldpile=(void *)Super(0);
-
 	/* Stop replay */
 	cookie_stfa->sound_enable=STFA_PLAY_DISABLE;
 
@@ -284,8 +265,6 @@
 	/* Restart replay */
 	cookie_stfa->sound_enable=STFA_PLAY_ENABLE|STFA_PLAY_REPEAT;
 
-	SuperToUser(oldpile);
-
 	DEBUG_PRINT((DEBUG_NAME "hardware initialized\n"));
 }