RMG-Core: add audio plugin settings

This commit is contained in:
Rosalie Wanders
2021-12-26 16:52:11 +01:00
parent 4227469427
commit e7b0147eb4
2 changed files with 14 additions and 2 deletions
+10 -2
View File
@@ -106,6 +106,7 @@ static std::vector<std::string> l_sectionList;
#define SETTING_SECTION_ROMBROWSER SETTING_SECTION_GUI " RomBrowser"
#define SETTING_SECTION_SETTINGS SETTING_SECTION_CORE " Settings"
#define SETTING_SECTION_M64P "Core"
#define SETTING_SECTION_AUDIO SETTING_SECTION_GUI " - Audio Plugin"
// retrieves l_Setting from settingId
static l_Setting get_setting(SettingsID settingId)
@@ -146,9 +147,9 @@ static l_Setting get_setting(SettingsID settingId)
case SettingsID::Core_AUDIO_Plugin:
setting = {SETTING_SECTION_CORE, "AUDIO_Plugin",
#ifdef _WIN32
"Plugin\\Audio\\mupen64plus-audio-sdl2.dll",
"Plugin\\Audio\\RMG-Audio.dll",
#else
"Plugin/Audio/mupen64plus-audio-sdl2.so",
"Plugin/Audio/RMG-Audio.so",
#endif // _WIN32
};
break;
@@ -340,6 +341,13 @@ static l_Setting get_setting(SettingsID settingId)
case SettingsID::Settings_HasForceUsedSetOnce:
setting = {SETTING_SECTION_SETTINGS, "HasForceUsedSetOnce", false};
break;
case SettingsID::Audio_Volume:
setting = {SETTING_SECTION_AUDIO, "Volume", 100};
break;
case SettingsID::Audio_Muted:
setting = {SETTING_SECTION_AUDIO, "Muted", false};
break;
}
return setting;
+4
View File
@@ -89,6 +89,10 @@ enum class SettingsID
// Settings Settings
Settings_HasForceUsedSetOnce,
// Audio Plugin Settings
Audio_Volume,
Audio_Muted,
Invalid
};