mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-11-22 17:29:18 +01:00
Take off portion of device name that is susceptible to localization
This commit is contained in:
parent
be10ab29b2
commit
4c0bbb5bf8
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user