Xaudio2 and ovr_GetAudioDeviceOutGuidStr() ( create mastering voice )
Hi,
I recently switched all my PC audio stuff to Xaudio2 ( win 10 ) apparently the function XAudio2->CreateMasteringVoice() has one of the parameters listed as LPCWSTR szDeviceId, which should be the "device ID" where the mastering audio voice get created.
I tried to pass in the result of ovr_GetAudioDeviceOutGuidStr() that in case of CV1 appears to be {0.0.0.00000000}.{4a98d273-85c2-4bf2-9977-e4f2ff62a11e} ( the headphones )
However this results always in an E-FAIL returned by CreateMasteringVoice().
I tried to read around and I don't quite get precisely "what is this deviceID expected by that function".
Somewhere I found someone saying " As of Windows 8, pass a software device ID (this is not the same as an IMMDevice ID.) " but I am not sure about the difference nor "how I can get it for the CV1" and/or if there' s way to derive it from ovr_GetAudioDeviceOutGuidStr() by appending some extra stuff.
Thanks in advance for any info.
I recently switched all my PC audio stuff to Xaudio2 ( win 10 ) apparently the function XAudio2->CreateMasteringVoice() has one of the parameters listed as LPCWSTR szDeviceId, which should be the "device ID" where the mastering audio voice get created.
I tried to pass in the result of ovr_GetAudioDeviceOutGuidStr() that in case of CV1 appears to be {0.0.0.00000000}.{4a98d273-85c2-4bf2-9977-e4f2ff62a11e} ( the headphones )
However this results always in an E-FAIL returned by CreateMasteringVoice().
I tried to read around and I don't quite get precisely "what is this deviceID expected by that function".
Somewhere I found someone saying " As of Windows 8, pass a software device ID (this is not the same as an IMMDevice ID.) " but I am not sure about the difference nor "how I can get it for the CV1" and/or if there' s way to derive it from ovr_GetAudioDeviceOutGuidStr() by appending some extra stuff.
Thanks in advance for any info.
