Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions FluentFlyoutWPF/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// SPDX-License-Identifier: GPL-3.0-or-later

using FluentFlyout.Classes;
using FluentFlyoutWPF.Classes.Utils;
using Microsoft.Toolkit.Uwp.Notifications;
using System.Windows;

Expand All @@ -24,6 +25,20 @@ protected override async void OnStartup(StartupEventArgs e)
// Register AUMID for toast notifications
ToastNotificationManagerCompat.OnActivated += Notifications.HandleNotificationActivation;

// Try to load Voicemeeter
VoicemeeterLoader.Load();

base.OnStartup(e);
}

protected override void OnExit(ExitEventArgs e)
{
if (VoicemeeterHelper.Instance != null)
{
VoicemeeterHelper.Instance.Dispose();
VoicemeeterHelper.Instance = null;
}

base.OnExit(e);
}
}
4 changes: 2 additions & 2 deletions FluentFlyoutWPF/Classes/AudioDeviceMonitor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,6 @@ public void OnPropertyValueChanged(string pwstrDeviceId, PropertyKey key) { }
public class DefaultDeviceChangedEventArgs(DataFlow dataFlow, Role role, string deviceId) : EventArgs
{
public DataFlow DataFlow { get; } = dataFlow;
public Role Role { get; } = role;
public string DeviceId { get; } = deviceId;
public Role Role { get; } = role;
public string DeviceId { get; } = deviceId;
}
Loading
Loading