|
@@ -14,35 +14,44 @@ namespace AudioMgr
|
|
|
if (AudioMain._debug)
|
|
if (AudioMain._debug)
|
|
|
MelonLogger.Msg("RTPC " + GameParameterIDs.GetString(rtpcID) + "; " + rtpcValue);
|
|
MelonLogger.Msg("RTPC " + GameParameterIDs.GetString(rtpcID) + "; " + rtpcValue);
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+ if (go == null)
|
|
|
|
|
+ {
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
// Aurora music patch
|
|
// Aurora music patch
|
|
|
- if(Settings.options.enableAuroraTweaks && GameParameterIDs.GetString(rtpcID) == "AURORASTRENGTH")
|
|
|
|
|
|
|
+ if (Settings.options.enableAuroraTweaks && GameParameterIDs.GetString(rtpcID) == "AURORASTRENGTH")
|
|
|
{
|
|
{
|
|
|
- if(rtpcValue > Settings.options.auroraVolume)
|
|
|
|
|
|
|
+ if (rtpcValue > Settings.options.auroraVolume)
|
|
|
{
|
|
{
|
|
|
- rtpcValue = Settings.options.auroraVolume;
|
|
|
|
|
|
|
+ rtpcValue = Settings.options.auroraVolume;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
// Wind audioc patch
|
|
// Wind audioc patch
|
|
|
if (Settings.options.enableWindTweaks && GameManager.GetWeatherComponent().IsIndoorScene() && (GameParameterIDs.GetString(rtpcID) == "WINDINTENSITYBLEND"))
|
|
if (Settings.options.enableWindTweaks && GameManager.GetWeatherComponent().IsIndoorScene() && (GameParameterIDs.GetString(rtpcID) == "WINDINTENSITYBLEND"))
|
|
|
- {
|
|
|
|
|
|
|
+ {
|
|
|
if (rtpcValue > Settings.options.windVolume)
|
|
if (rtpcValue > Settings.options.windVolume)
|
|
|
{
|
|
{
|
|
|
|
|
+
|
|
|
rtpcValue = Settings.options.windVolume;
|
|
rtpcValue = Settings.options.windVolume;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
|
|
|
if (VolumeIDs.GetRtpcIDMaster() == rtpcID)
|
|
if (VolumeIDs.GetRtpcIDMaster() == rtpcID)
|
|
|
{
|
|
{
|
|
|
|
|
+
|
|
|
VolumeMaster.SetMasterVolume(rtpcValue / 100);
|
|
VolumeMaster.SetMasterVolume(rtpcValue / 100);
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
else if (VolumeIDs.GetRtpcIDList().ContainsKey(rtpcID)) // Set sfx/voice/ambient/bgm
|
|
else if (VolumeIDs.GetRtpcIDList().ContainsKey(rtpcID)) // Set sfx/voice/ambient/bgm
|
|
|
{
|
|
{
|
|
|
|
|
+
|
|
|
VolumeMaster.SetVolume(VolumeIDs.GetRtpcIDList()[rtpcID], rtpcValue / 100);
|
|
VolumeMaster.SetVolume(VolumeIDs.GetRtpcIDList()[rtpcID], rtpcValue / 100);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
rtpcValue = PatchMaster.ParameterAction(GameParameterIDs.GetString(rtpcID), rtpcValue);
|
|
rtpcValue = PatchMaster.ParameterAction(GameParameterIDs.GetString(rtpcID), rtpcValue);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|