misc movie cleanup and fixes

This commit is contained in:
rog
2012-10-20 19:54:38 -04:00
parent 92d2f5dee2
commit 9070e7ff8c
3 changed files with 66 additions and 61 deletions

View File

@ -26,6 +26,7 @@
#include "CoreAudioSoundStream.h"
#include "OpenALStream.h"
#include "PulseAudioStream.h"
#include "../../Core/Src/Movie.h"
namespace AudioCommon
{
@ -115,7 +116,12 @@ namespace AudioCommon
return backends;
}
bool UseJIT() {
bool UseJIT()
{
if (!Movie::IsDSPHLE() && Movie::IsPlayingInput() && Movie::IsConfigSaved())
{
return true;
}
return ac_Config.m_EnableJIT;
}