mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 12:19:12 +00:00
This is a joined work of XK and me on improving the HLE plugin interface.
It allows run time selection of backends (AOSound, DSound and NullSound). It replaces the DSP_NULL plugin (works even better!) It also includes improved thread handling on asound, and using some common functions on both asound and windows. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2027 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
121be22532
commit
7219bcd4d5
46 changed files with 705 additions and 4584 deletions
|
@ -26,22 +26,23 @@ CConfig::CConfig()
|
|||
Load();
|
||||
}
|
||||
|
||||
void CConfig::LoadDefaults()
|
||||
{
|
||||
m_EnableHLEAudio = true;
|
||||
m_EnableDTKMusic = true;
|
||||
}
|
||||
|
||||
void CConfig::Load()
|
||||
{
|
||||
// first load defaults
|
||||
LoadDefaults();
|
||||
|
||||
std::string temp;
|
||||
|
||||
IniFile file;
|
||||
file.Load(FULL_CONFIG_DIR "DSP.ini");
|
||||
file.Get("Config", "EnableHLEAudio", &m_EnableHLEAudio, true); // Sound Settings
|
||||
file.Get("Config", "EnableDTKMusic", &m_EnableDTKMusic, true);
|
||||
file.Get("Config", "EnableThrottle", &m_EnableThrottle, true);
|
||||
|
||||
#ifdef _WIN32
|
||||
file.Get("Config", "Backend", &temp, "DSound");
|
||||
#else
|
||||
file.Get("Config", "Backend", &temp, "AOSound");
|
||||
#endif
|
||||
strncpy(sBackend, temp.c_str(), 16);
|
||||
}
|
||||
|
||||
void CConfig::Save()
|
||||
|
@ -51,6 +52,7 @@ void CConfig::Save()
|
|||
file.Set("Config", "EnableHLEAudio", m_EnableHLEAudio); // Sound Settings
|
||||
file.Set("Config", "EnableDTKMusic", m_EnableDTKMusic);
|
||||
file.Set("Config", "EnableThrottle", m_EnableThrottle);
|
||||
|
||||
file.Set("Config", "Backend", sBackend);
|
||||
|
||||
file.Save(FULL_CONFIG_DIR "DSP.ini");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue