Disabled the DSP thread if netplay or a movie has been started
This commit is contained in:
parent
2140ac15e4
commit
5c862adfa7
|
@ -17,6 +17,8 @@
|
||||||
#include "Core/ConfigManager.h"
|
#include "Core/ConfigManager.h"
|
||||||
#include "Core/Core.h"
|
#include "Core/Core.h"
|
||||||
#include "Core/Host.h"
|
#include "Core/Host.h"
|
||||||
|
#include "Core/Movie.h"
|
||||||
|
#include "Core/NetPlayProto.h"
|
||||||
#include "Core/DSP/DSPCaptureLogger.h"
|
#include "Core/DSP/DSPCaptureLogger.h"
|
||||||
#include "Core/DSP/DSPCore.h"
|
#include "Core/DSP/DSPCore.h"
|
||||||
#include "Core/DSP/DSPDisassembler.h"
|
#include "Core/DSP/DSPDisassembler.h"
|
||||||
|
@ -31,7 +33,6 @@
|
||||||
#include "Core/HW/DSPLLE/DSPLLEGlobals.h"
|
#include "Core/HW/DSPLLE/DSPLLEGlobals.h"
|
||||||
#include "Core/HW/DSPLLE/DSPSymbols.h"
|
#include "Core/HW/DSPLLE/DSPSymbols.h"
|
||||||
|
|
||||||
|
|
||||||
DSPLLE::DSPLLE()
|
DSPLLE::DSPLLE()
|
||||||
{
|
{
|
||||||
m_bIsRunning = false;
|
m_bIsRunning = false;
|
||||||
|
@ -314,13 +315,16 @@ void DSPLLE::DSP_Update(int cycles)
|
||||||
soundStream->Update();
|
soundStream->Update();
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
if (requestDisableThread)
|
if (m_bDSPThread)
|
||||||
|
{
|
||||||
|
if (requestDisableThread || NetPlay::IsNetPlayRunning() || Movie::IsMovieActive())
|
||||||
{
|
{
|
||||||
DSP_StopSoundStream();
|
DSP_StopSoundStream();
|
||||||
m_bDSPThread = false;
|
m_bDSPThread = false;
|
||||||
requestDisableThread = false;
|
requestDisableThread = false;
|
||||||
SConfig::GetInstance().m_LocalCoreStartupParameter.bDSPThread = false;
|
SConfig::GetInstance().m_LocalCoreStartupParameter.bDSPThread = false;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// If we're not on a thread, run cycles here.
|
// If we're not on a thread, run cycles here.
|
||||||
if (!m_bDSPThread)
|
if (!m_bDSPThread)
|
||||||
|
|
Loading…
Reference in New Issue