diff --git a/SoundSwitch.Common/Framework/Audio/Device/DeviceFullInfo.cs b/SoundSwitch.Common/Framework/Audio/Device/DeviceFullInfo.cs index 535683b416..e585e11ad4 100644 --- a/SoundSwitch.Common/Framework/Audio/Device/DeviceFullInfo.cs +++ b/SoundSwitch.Common/Framework/Audio/Device/DeviceFullInfo.cs @@ -28,7 +28,11 @@ public DeviceFullInfo(MMDevice device) : base(device) State = device.State; try { - Volume = (int)(device.AudioEndpointVolume.MasterVolumeLevelScalar * 100); + //Can only get volume for active devices + if (device.State == DeviceState.Active) + { + Volume = (int)(device.AudioEndpointVolume.MasterVolumeLevelScalar * 100); + } } catch {