XK patch for adding jit config to audiocommon/c16 function to x64emitter

and Skidu's fix for 64bit


git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5230 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
nakeee
2010-03-24 11:22:33 +00:00
parent ea90996852
commit 47239ce0f4
6 changed files with 28 additions and 1 deletions

View File

@ -102,4 +102,8 @@ namespace AudioCommon
return backends;
}
bool UseJIT() {
return ac_Config.m_EnableJIT;
}
}

View File

@ -60,6 +60,7 @@ namespace AudioCommon
SoundStream *InitSoundStream(CMixer *mixer = NULL);
void ShutdownSoundStream();
std::vector<std::string> GetSoundBackends();
bool UseJIT();
}
#endif // _AUDIO_COMMON_H_

View File

@ -22,6 +22,7 @@ AudioCommonConfig ac_Config;
void AudioCommonConfig::Load(IniFile &file) {
file.Get("Config", "EnableDTKMusic", &m_EnableDTKMusic, true);
file.Get("Config", "EnableThrottle", &m_EnableThrottle, true);
file.Get("Config", "EnableJIT", &m_EnableJIT, true);
file.Get("Config", "Volume", &m_Volume, 75);
#ifdef _WIN32
file.Get("Config", "Backend", &sBackend, BACKEND_DIRECTSOUND);
@ -38,6 +39,7 @@ void AudioCommonConfig::Load(IniFile &file) {
void AudioCommonConfig::Set(IniFile &file) {
file.Set("Config", "EnableDTKMusic", m_EnableDTKMusic);
file.Set("Config", "EnableThrottle", m_EnableThrottle);
file.Set("Config", "EnableJIT", m_EnableJIT);
file.Set("Config", "Backend", sBackend);
file.Set("Config", "Volume", m_Volume);
}

View File

@ -33,6 +33,7 @@ struct AudioCommonConfig
{
bool m_EnableDTKMusic;
bool m_EnableThrottle;
bool m_EnableJIT;
int m_Volume;
#ifdef __APPLE__
char sBackend[128];