mirror of
https://github.com/dborth/fceugx.git
synced 2025-01-05 21:38:17 +01:00
change audio stop/start
This commit is contained in:
parent
136f3487dc
commit
244536f86f
@ -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);
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
|
Loading…
Reference in New Issue
Block a user