mirror of
https://github.com/dborth/snes9xgx.git
synced 2024-12-27 03:31:50 +01:00
add DSP halt/unhalt when switching between sound modes
This commit is contained in:
parent
007dbb6b4d
commit
e138b27dea
@ -118,7 +118,10 @@ SwitchAudioMode(int mode)
|
|||||||
{
|
{
|
||||||
#ifndef NO_SOUND
|
#ifndef NO_SOUND
|
||||||
ASND_Pause(1);
|
ASND_Pause(1);
|
||||||
|
ASND_End();
|
||||||
AUDIO_StopDMA();
|
AUDIO_StopDMA();
|
||||||
|
AUDIO_RegisterDMACallback(NULL);
|
||||||
|
DSP_Halt();
|
||||||
AUDIO_SetDSPSampleRate(AI_SAMPLERATE_32KHZ);
|
AUDIO_SetDSPSampleRate(AI_SAMPLERATE_32KHZ);
|
||||||
AUDIO_RegisterDMACallback(GCMixSamples);
|
AUDIO_RegisterDMACallback(GCMixSamples);
|
||||||
#endif
|
#endif
|
||||||
@ -135,6 +138,7 @@ SwitchAudioMode(int mode)
|
|||||||
{
|
{
|
||||||
S9xSetSamplesAvailableCallback(NULL, NULL);
|
S9xSetSamplesAvailableCallback(NULL, NULL);
|
||||||
#ifndef NO_SOUND
|
#ifndef NO_SOUND
|
||||||
|
DSP_Unhalt();
|
||||||
ASND_Init();
|
ASND_Init();
|
||||||
ASND_Pause(0);
|
ASND_Pause(0);
|
||||||
#else
|
#else
|
||||||
|
Loading…
Reference in New Issue
Block a user