Skip to content

Commit

Permalink
2nd VRChat OSC output works as intended, changed version to v0.7.439
Browse files Browse the repository at this point in the history
  • Loading branch information
BoiHanny committed Jun 26, 2023
1 parent 6581866 commit ccd677e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ public static void ManageSettingsXML(bool saveSettings = false)

{"OSCIP", (typeof(string), "OSC")},
{"OSCPortOut", (typeof(int), "OSC")},
{"SecOSC", (typeof(string), "OSC")},
{"SecOSC", (typeof(bool), "OSC")},
{"SecOSCPort", (typeof(int), "OSC")},

{"BlankEgg", (typeof(bool), "DEV")},
Expand Down
18 changes: 6 additions & 12 deletions vrcosc-magicchatbox/Classes/OSCController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,8 @@
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows;
using vrcosc_magicchatbox.Classes.DataAndSecurity;
using vrcosc_magicchatbox.ViewModels;
using System.Windows.Media;
using System.Diagnostics;
using System.Windows.Threading;

namespace vrcosc_magicchatbox.Classes
{
Expand Down Expand Up @@ -87,7 +81,7 @@ await Task.Run(() =>
oscSender.Send(new OscMessage("/chatbox/input", ViewModel.Instance.OSCtoSent, true, FX));
if (ViewModel.Instance.SecOSC)
{
oscSender.Send(new OscMessage("/chatbox/input", ViewModel.Instance.OSCtoSent, true, FX));
SecOscSender.Send(new OscMessage("/chatbox/input", ViewModel.Instance.OSCtoSent, true, FX));
}
}

Expand Down Expand Up @@ -146,14 +140,14 @@ await Task.Run(() =>
oscSender.Send(new OscMessage("/input/Voice", 1));
if (ViewModel.Instance.SecOSC)
{
oscSender.Send(new OscMessage("/input/Voice", 1));
SecOscSender.Send(new OscMessage("/input/Voice", 1));
}
ViewModel.Instance.TTSBtnShadow = true;
Thread.Sleep(100);
oscSender.Send(new OscMessage("/input/Voice", 0));
if (ViewModel.Instance.SecOSC)
{
oscSender.Send(new OscMessage("/input/Voice", 1));
SecOscSender.Send(new OscMessage("/input/Voice", 1));
}
ViewModel.Instance.TTSBtnShadow = false;
});
Expand Down Expand Up @@ -189,8 +183,8 @@ public static async Task TypingIndicatorAsync(bool Typing)
// Check if we need to close the SECcurrent sender and create a new one with the updated IP and port
if (SecOscSender != null && (ViewModel.Instance.OSCIP != SecOscSender.Address || ViewModel.Instance.SecOSCPort != SecOscSender.Port))
{
oscSender.Close();
oscSender = null;
SecOscSender.Close();
SecOscSender = null;
}

// Create a new sender if there is none
Expand All @@ -211,7 +205,7 @@ await Task.Run(() =>
oscSender.Send(new OscMessage("/chatbox/typing", Typing));
if (ViewModel.Instance.SecOSC)
{
oscSender.Send(new OscMessage("/chatbox/typing", Typing));
SecOscSender.Send(new OscMessage("/chatbox/typing", Typing));
}
});

Expand Down
2 changes: 1 addition & 1 deletion vrcosc-magicchatbox/ViewModels/ViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ private void UpdateToggleVoiceText()
private bool _Time24H = false;
private string _OSCtoSent = "";
private string _ApiStream = "b2t8DhYcLcu7Nu0suPcvc8lO27wztrjMPbb + 8hQ1WPba2dq / iRyYpBEDZ0NuMNKR5GRrF2XdfANLud0zihG / UD + ewVl1p3VLNk1mrNdrdg88rguzi6RJ7T1AA7hyBY + F";
private Version _AppVersion = new("0.7.412");
private Version _AppVersion = new("0.7.439");
private Version _GitHubVersion;
private string _VersionTxt = "Check for updates";
private string _VersionTxtColor = "#FF8F80B9";
Expand Down

0 comments on commit ccd677e

Please sign in to comment.