mirror of
https://github.com/dborth/snes9xgx.git
synced 2024-11-27 21:14:21 +01:00
change audio mode switch
This commit is contained in:
parent
4cd7c28bb4
commit
6bf2a1f353
@ -111,17 +111,18 @@ SwitchAudioMode(int mode)
|
|||||||
{
|
{
|
||||||
#ifndef NO_SOUND
|
#ifndef NO_SOUND
|
||||||
ASND_Pause(1);
|
ASND_Pause(1);
|
||||||
#endif
|
|
||||||
AUDIO_StopDMA();
|
AUDIO_StopDMA();
|
||||||
AUDIO_SetDSPSampleRate(AI_SAMPLERATE_32KHZ);
|
AUDIO_SetDSPSampleRate(AI_SAMPLERATE_32KHZ);
|
||||||
AUDIO_RegisterDMACallback(GCMixSamples);
|
AUDIO_RegisterDMACallback(GCMixSamples);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
else // menu
|
else // menu
|
||||||
{
|
{
|
||||||
AUDIO_StopDMA();
|
|
||||||
#ifndef NO_SOUND
|
#ifndef NO_SOUND
|
||||||
ASND_SetDMACallback();
|
ASND_Init();
|
||||||
ASND_Pause(0);
|
ASND_Pause(0);
|
||||||
|
#else
|
||||||
|
AUDIO_StopDMA();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -134,12 +135,7 @@ SwitchAudioMode(int mode)
|
|||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
void ShutdownAudio()
|
void ShutdownAudio()
|
||||||
{
|
{
|
||||||
#ifndef NO_SOUND
|
|
||||||
ASND_Pause(1);
|
|
||||||
ASND_End();
|
|
||||||
#endif
|
|
||||||
AUDIO_StopDMA();
|
AUDIO_StopDMA();
|
||||||
AUDIO_RegisterDMACallback(NULL);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
|
Loading…
Reference in New Issue
Block a user