Skip to content

Commit

Permalink
atari:audio:stfa: no need to switch to supervisor mode
Browse files Browse the repository at this point in the history
  • Loading branch information
pmandin committed Jul 28, 2014
1 parent e4e4159 commit f202686
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions src/audio/mint/SDL_mintaudio_stfa.c
Expand Up @@ -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"
Expand Down Expand Up @@ -160,32 +159,17 @@ AudioBootStrap MINTAUDIO_STFA_bootstrap = {

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) {
Expand Down Expand Up @@ -242,12 +226,9 @@ static int Mint_CheckAudio(_THIS, SDL_AudioSpec *spec)
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;

Expand Down Expand Up @@ -284,8 +265,6 @@ static void Mint_InitAudio(_THIS, SDL_AudioSpec *spec)
/* Restart replay */
cookie_stfa->sound_enable=STFA_PLAY_ENABLE|STFA_PLAY_REPEAT;

SuperToUser(oldpile);

DEBUG_PRINT((DEBUG_NAME "hardware initialized\n"));
}

Expand Down

0 comments on commit f202686

Please sign in to comment.