diff options
| author | rog <rdragoon@optonline.net> | 2012-10-20 19:54:38 -0400 |
|---|---|---|
| committer | rog <rdragoon@optonline.net> | 2012-10-20 22:26:40 -0400 |
| commit | 9070e7ff8c45a7ca4c0bcb0e728dd4720abab7be (patch) | |
| tree | d87ad32a98fc77e2818e0f14df0aa9e2fc7b1411 /Source/Core/AudioCommon/Src/AudioCommon.cpp | |
| parent | 92d2f5dee21e19cccdba9d3ef0d10a9097dcb6d2 (diff) | |
misc movie cleanup and fixes
Diffstat (limited to 'Source/Core/AudioCommon/Src/AudioCommon.cpp')
| -rw-r--r-- | Source/Core/AudioCommon/Src/AudioCommon.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Source/Core/AudioCommon/Src/AudioCommon.cpp b/Source/Core/AudioCommon/Src/AudioCommon.cpp index b73757cad5..8a568448a3 100644 --- a/Source/Core/AudioCommon/Src/AudioCommon.cpp +++ b/Source/Core/AudioCommon/Src/AudioCommon.cpp @@ -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; } |
