mirror of
https://github.com/dborth/snes9xgx.git
synced 2024-12-26 19:21: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
|
||||
ASND_Pause(1);
|
||||
ASND_End();
|
||||
AUDIO_StopDMA();
|
||||
AUDIO_RegisterDMACallback(NULL);
|
||||
DSP_Halt();
|
||||
AUDIO_SetDSPSampleRate(AI_SAMPLERATE_32KHZ);
|
||||
AUDIO_RegisterDMACallback(GCMixSamples);
|
||||
#endif
|
||||
@ -135,6 +138,7 @@ SwitchAudioMode(int mode)
|
||||
{
|
||||
S9xSetSamplesAvailableCallback(NULL, NULL);
|
||||
#ifndef NO_SOUND
|
||||
DSP_Unhalt();
|
||||
ASND_Init();
|
||||
ASND_Pause(0);
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user