From 4c0bbb5bf8822ee857d872c8f03684e43eb3311f Mon Sep 17 00:00:00 2001 From: Travis Nickles Date: Mon, 15 Jan 2018 17:42:47 -0600 Subject: [PATCH] Take off portion of device name that is susceptible to localization --- DS4Windows/DS4Library/DS4Audio.cs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/DS4Windows/DS4Library/DS4Audio.cs b/DS4Windows/DS4Library/DS4Audio.cs index 085d156..1ed3101 100644 --- a/DS4Windows/DS4Library/DS4Audio.cs +++ b/DS4Windows/DS4Library/DS4Audio.cs @@ -62,14 +62,7 @@ namespace DS4Windows.DS4Library endpointVolume = interfacePointer as IAudioEndpointVolume; endpointVolume.RegisterControlChangeNotify(this); } - else if (deviceName.Contains("Headset Earphone (Wireless Controller)")) - { - object interfacePointer; - Marshal.ThrowExceptionForHR(audioDevice.Activate(ref IID_IAudioEndpointVolume, ClsCtx.ALL, IntPtr.Zero, out interfacePointer)); - endpointVolume = interfacePointer as IAudioEndpointVolume; - endpointVolume.RegisterControlChangeNotify(this); - } - else if (deviceName.Contains("Headset Microphone (Wireless Controller)")) + else if (deviceName.Contains("(Wireless Controller)")) { object interfacePointer; Marshal.ThrowExceptionForHR(audioDevice.Activate(ref IID_IAudioEndpointVolume, ClsCtx.ALL, IntPtr.Zero, out interfacePointer));