Delete AudioCommon::UseJIT().

This commit is contained in:
magumagu 2014-03-27 16:09:57 -07:00
parent 102ea55f20
commit 78499e5b7c
3 changed files with 3 additions and 11 deletions

View File

@ -133,15 +133,6 @@ namespace AudioCommon
return backends; return backends;
} }
bool UseJIT()
{
if (!Movie::IsDSPHLE() && Movie::IsPlayingInput() && Movie::IsConfigSaved())
{
return true;
}
return SConfig::GetInstance().m_DSPEnableJIT;
}
void PauseAndLock(bool doLock, bool unpauseOnUnlock) void PauseAndLock(bool doLock, bool unpauseOnUnlock)
{ {
if (soundStream) if (soundStream)

View File

@ -17,7 +17,6 @@ namespace AudioCommon
SoundStream *InitSoundStream(void *hWnd); SoundStream *InitSoundStream(void *hWnd);
void ShutdownSoundStream(); void ShutdownSoundStream();
std::vector<std::string> GetSoundBackends(); std::vector<std::string> GetSoundBackends();
bool UseJIT();
void PauseAndLock(bool doLock, bool unpauseOnUnlock=true); void PauseAndLock(bool doLock, bool unpauseOnUnlock=true);
void UpdateSoundStream(); void UpdateSoundStream();
} }

View File

@ -143,7 +143,9 @@ bool DSPLLE::Initialize(void *hWnd, bool bWii, bool bDSPThread)
irom_file = File::GetSysDirectory() + GC_SYS_DIR DIR_SEP DSP_IROM; irom_file = File::GetSysDirectory() + GC_SYS_DIR DIR_SEP DSP_IROM;
if (!File::Exists(coef_file)) if (!File::Exists(coef_file))
coef_file = File::GetSysDirectory() + GC_SYS_DIR DIR_SEP DSP_COEF; coef_file = File::GetSysDirectory() + GC_SYS_DIR DIR_SEP DSP_COEF;
if (!DSPCore_Init(irom_file, coef_file, AudioCommon::UseJIT()))
bool use_jit = SConfig::GetInstance().m_DSPEnableJIT;
if (!DSPCore_Init(irom_file, coef_file, use_jit))
return false; return false;
g_dsp.cpu_ram = Memory::GetPointer(0); g_dsp.cpu_ram = Memory::GetPointer(0);