mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2025-02-02 18:12:32 +01:00
Change lookup device name for DS4 v2 audio device
This commit is contained in:
parent
5cd84ecb5a
commit
3d5909a0e4
@ -62,7 +62,7 @@ namespace DS4Windows.DS4Library
|
|||||||
endpointVolume = interfacePointer as IAudioEndpointVolume;
|
endpointVolume = interfacePointer as IAudioEndpointVolume;
|
||||||
endpointVolume.RegisterControlChangeNotify(this);
|
endpointVolume.RegisterControlChangeNotify(this);
|
||||||
}
|
}
|
||||||
else if (deviceName.Contains("(Wireless Controller)"))
|
else if (deviceName.Contains("Wireless Controller"))
|
||||||
{
|
{
|
||||||
object interfacePointer;
|
object interfacePointer;
|
||||||
Marshal.ThrowExceptionForHR(audioDevice.Activate(ref IID_IAudioEndpointVolume, ClsCtx.ALL, IntPtr.Zero, out interfacePointer));
|
Marshal.ThrowExceptionForHR(audioDevice.Activate(ref IID_IAudioEndpointVolume, ClsCtx.ALL, IntPtr.Zero, out interfacePointer));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user