Fix audio player device switching

This commit is contained in:
KillzXGaming 2021-06-04 18:23:54 -04:00
parent 65732387fc
commit 15dca5a055

View file

@ -467,6 +467,8 @@ namespace Toolbox.Library.Forms
private void audioDevice_SelectedIndexChanged(object sender, EventArgs e) 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) private void channelCB_SelectedIndexChanged(object sender, EventArgs e)