diff --git a/PNGBuddy/MainWindow.xaml.cs b/PNGBuddy/MainWindow.xaml.cs index e340f8c..4bfe857 100644 --- a/PNGBuddy/MainWindow.xaml.cs +++ b/PNGBuddy/MainWindow.xaml.cs @@ -1,14 +1,9 @@ -using AutoUpdaterDotNET; -using MaterialDesignThemes.Wpf; -using Microsoft.VisualBasic; -using PNGBuddy.Messages; +using PNGBuddy.Messages; using PNGBuddy.Messages.Hello; using PNGBuddy.Types; using System; using System.Collections.ObjectModel; -using System.Diagnostics; using System.Linq; -using System.Net; using System.Net.WebSockets; using System.Security.Cryptography; using System.Text; @@ -18,7 +13,6 @@ using System.Threading.Tasks; using System.Windows; using System.Windows.Data; -using System.Windows.Forms; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Threading; @@ -237,7 +231,7 @@ await Dispatcher.InvokeAsync(() => case "InputCreated": { var input = JsonSerializer.Deserialize(ev.Data?.ToString()!); - if (input?.InputKind == "wasapi_input_capture") + if (input?.InputKind?.StartsWith("wasapi") == true) { await Dispatcher.InvokeAsync(() => { @@ -282,7 +276,7 @@ await Dispatcher.InvokeAsync(() => { case "GetInputList": var inputs = JsonSerializer.Deserialize(res.Data?.ToString()!); - var audio = inputs?.Inputs?.Where(i => i.Kind == "wasapi_input_capture").ToList(); + var audio = inputs?.Inputs?.Where(i => i.Kind!.StartsWith("wasapi")).ToList(); await Dispatcher.InvokeAsync(() => { @@ -391,6 +385,11 @@ private void Idle_SourceUpdated(object sender, DataTransferEventArgs e) IdleGrayScale.OpacityMask = new ImageBrush(bitmapImage); } + private void Test() + { + + } + private void Main_Loaded(object sender, RoutedEventArgs e) { Initialize(); diff --git a/PNGBuddy/PNGBuddy.csproj b/PNGBuddy/PNGBuddy.csproj index bb60d6f..f878363 100644 --- a/PNGBuddy/PNGBuddy.csproj +++ b/PNGBuddy/PNGBuddy.csproj @@ -9,7 +9,7 @@ x64 False True - 1.0.1.0 + 1.0.2.0 UnseenFaith diff --git a/version.xml b/version.xml index f1fef48..adc26c7 100644 --- a/version.xml +++ b/version.xml @@ -1,6 +1,6 @@ - 1.0.1.0 - https://github.com/UnseenFaith/PNGBuddy/releases/download/1.0.1/PNGBuddy.zip + 1.0.2 + https://github.com/UnseenFaith/PNGBuddy/releases/download/1.0.2/PNGBuddy.zip false \ No newline at end of file