From 244536f86f3e905322fe40f64c419fba27b30693 Mon Sep 17 00:00:00 2001 From: dborth Date: Sat, 13 Jun 2009 17:43:24 +0000 Subject: [PATCH] change audio stop/start --- source/ngc/gcaudio.cpp | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/source/ngc/gcaudio.cpp b/source/ngc/gcaudio.cpp index 760c7f9..21f94fc 100644 --- a/source/ngc/gcaudio.cpp +++ b/source/ngc/gcaudio.cpp @@ -116,18 +116,18 @@ SwitchAudioMode(int mode) { #ifndef NO_SOUND ASND_Pause(1); - #endif AUDIO_StopDMA(); - AUDIO_SetDSPSampleRate(AI_SAMPLERATE_48KHZ); AUDIO_RegisterDMACallback(AudioSwitchBuffers); + #endif } else // menu { IsPlaying = 0; - AUDIO_StopDMA(); #ifndef NO_SOUND - ASND_SetDMACallback(); + ASND_Init(); ASND_Pause(0); + #else + AUDIO_StopDMA(); #endif } } @@ -140,12 +140,7 @@ SwitchAudioMode(int mode) ***************************************************************************/ void ShutdownAudio() { - #ifndef NO_SOUND - ASND_Pause(1); - ASND_End(); - #endif AUDIO_StopDMA(); - AUDIO_RegisterDMACallback(NULL); } /****************************************************************************