mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 09:09:52 -06:00
Move audio handling out of DSP emulation.
This is good for a couple of reasons: one, it gets rid of duplicated code, and two, DSP emulation shouldn't need to interact with audio in the first place.
This commit is contained in:
@ -2,6 +2,8 @@
|
||||
// Licensed under GPLv2
|
||||
// Refer to the license.txt file included.
|
||||
|
||||
#include "AudioCommon/AudioCommon.h"
|
||||
|
||||
#include "Common/Common.h"
|
||||
#include "Common/Thread.h"
|
||||
|
||||
@ -112,14 +114,14 @@ void CCPU::EnableStepping(const bool _bStepping)
|
||||
PowerPC::Pause();
|
||||
m_StepEvent.Reset();
|
||||
g_video_backend->EmuStateChange(EMUSTATE_CHANGE_PAUSE);
|
||||
DSP::GetDSPEmulator()->DSP_ClearAudioBuffer(true);
|
||||
AudioCommon::ClearAudioBuffer(true);
|
||||
}
|
||||
else
|
||||
{
|
||||
PowerPC::Start();
|
||||
m_StepEvent.Set();
|
||||
g_video_backend->EmuStateChange(EMUSTATE_CHANGE_PLAY);
|
||||
DSP::GetDSPEmulator()->DSP_ClearAudioBuffer(false);
|
||||
AudioCommon::ClearAudioBuffer(false);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user