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,12 +315,15 @@ void DSPLLE::DSP_Update(int cycles)
|
||||||
soundStream->Update();
|
soundStream->Update();
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
if (requestDisableThread)
|
if (m_bDSPThread)
|
||||||
{
|
{
|
||||||
DSP_StopSoundStream();
|
if (requestDisableThread || NetPlay::IsNetPlayRunning() || Movie::IsMovieActive())
|
||||||
m_bDSPThread = false;
|
{
|
||||||
requestDisableThread = false;
|
DSP_StopSoundStream();
|
||||||
SConfig::GetInstance().m_LocalCoreStartupParameter.bDSPThread = false;
|
m_bDSPThread = false;
|
||||||
|
requestDisableThread = 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.
|
||||||
|
|
Loading…
Reference in New Issue