From 586dba1df607527666635bd5340bbabb93babf84 Mon Sep 17 00:00:00 2001 From: Delta Date: Tue, 16 Apr 2024 03:29:37 -0700 Subject: [PATCH] IsMuted moved to AudioSystem in 2024.4.15.1407 --- ResonitePTTKeybinds/Properties/AssemblyInfo.cs | 6 +++--- ResonitePTTKeybinds/ResonitePTTKeybinds.cs | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/ResonitePTTKeybinds/Properties/AssemblyInfo.cs b/ResonitePTTKeybinds/Properties/AssemblyInfo.cs index a35ca42..2c17c75 100644 --- a/ResonitePTTKeybinds/Properties/AssemblyInfo.cs +++ b/ResonitePTTKeybinds/Properties/AssemblyInfo.cs @@ -9,7 +9,7 @@ [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("Delta")] [assembly: AssemblyProduct("ResonitePTTKeybinds")] -[assembly: AssemblyCopyright("Copyright © Delta 2023")] +[assembly: AssemblyCopyright("Copyright © Delta 2024")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] @@ -31,5 +31,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.3.0")] -[assembly: AssemblyFileVersion("1.3.0")] +[assembly: AssemblyVersion("1.5.0")] +[assembly: AssemblyFileVersion("1.5.0")] diff --git a/ResonitePTTKeybinds/ResonitePTTKeybinds.cs b/ResonitePTTKeybinds/ResonitePTTKeybinds.cs index 15d68ab..92fcd7d 100644 --- a/ResonitePTTKeybinds/ResonitePTTKeybinds.cs +++ b/ResonitePTTKeybinds/ResonitePTTKeybinds.cs @@ -7,7 +7,7 @@ namespace ResonitePTTKeybinds; public class ResonitePTTKeybinds : ResoniteMod { public override string Name => "PTT Keybinds"; public override string Author => "Delta"; - public override string Version => "1.4.0"; + public override string Version => "1.5.0"; public override string Link => "https://github.com/XDelta/ResonitePTTKeybinds"; //TODO keycode config for rebinding activation keys @@ -98,34 +98,34 @@ static void Postfix(VoiceModeSync __instance) { return; } if (__instance.InputInterface.GetKeyDown(Config.GetValue(MuteKey))) { - __instance.InputInterface.IsMuted = true; + __instance.AudioSystem.IsMuted = true; Debug("Mute Keybind pressed: " + Config.GetValue(MuteKey)); } if (__instance.InputInterface.GetKeyDown(Config.GetValue(WhisperKey))) { if (VoiceMode.Whisper <= __instance.FocusedWorldMaxAllowedVoiceMode.Value) { __instance.FocusedWorldVoiceMode.Value = VoiceMode.Whisper; - __instance.InputInterface.IsMuted = false; + __instance.AudioSystem.IsMuted = false; Debug("Whisper Keybind pressed: " + Config.GetValue(WhisperKey)); } } if (__instance.InputInterface.GetKeyDown(Config.GetValue(NormalKey))) { if (VoiceMode.Normal <= __instance.FocusedWorldMaxAllowedVoiceMode.Value) { __instance.FocusedWorldVoiceMode.Value = VoiceMode.Normal; - __instance.InputInterface.IsMuted = false; + __instance.AudioSystem.IsMuted = false; Debug("Normal Keybind pressed: " + Config.GetValue(NormalKey)); } } if (__instance.InputInterface.GetKeyDown(Config.GetValue(ShoutKey))) { if (VoiceMode.Shout <= __instance.FocusedWorldMaxAllowedVoiceMode.Value) { __instance.FocusedWorldVoiceMode.Value = VoiceMode.Shout; - __instance.InputInterface.IsMuted = false; + __instance.AudioSystem.IsMuted = false; Debug("Shout Keybind pressed: " + Config.GetValue(ShoutKey)); } } if (__instance.InputInterface.GetKeyDown(Config.GetValue(BroadcastKey))) { if (VoiceMode.Broadcast <= __instance.FocusedWorldMaxAllowedVoiceMode.Value) { __instance.FocusedWorldVoiceMode.Value = VoiceMode.Broadcast; - __instance.InputInterface.IsMuted = false; + __instance.AudioSystem.IsMuted = false; Debug("Broadcast Keybind pressed: " + Config.GetValue(BroadcastKey)); } }