From 15dca5a055f9b86cc5a94a368ab48f2140393da9 Mon Sep 17 00:00:00 2001 From: KillzXGaming Date: Fri, 4 Jun 2021 18:23:54 -0400 Subject: [PATCH] Fix audio player device switching --- Switch_Toolbox_Library/Forms/Editors/Audio/AudioPlayerPanel.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Switch_Toolbox_Library/Forms/Editors/Audio/AudioPlayerPanel.cs b/Switch_Toolbox_Library/Forms/Editors/Audio/AudioPlayerPanel.cs index 5170b0b6..59f2f1c9 100644 --- a/Switch_Toolbox_Library/Forms/Editors/Audio/AudioPlayerPanel.cs +++ b/Switch_Toolbox_Library/Forms/Editors/Audio/AudioPlayerPanel.cs @@ -467,6 +467,8 @@ namespace Toolbox.Library.Forms private void audioDevice_SelectedIndexChanged(object sender, EventArgs e) { + if (audioDevice.SelectedItem != null && audioDevice.SelectedItem is MMDevice) + activeDevice = (MMDevice)audioDevice.SelectedItem; } private void channelCB_SelectedIndexChanged(object sender, EventArgs e)