secondlife / viewer

🖥️ Second Life's official client
GNU Lesser General Public License v2.1
199 stars 46 forks source link

[WebRTC] Voice input/output is not using the Windows-Default device when set to 'Default' #1090

Open canny[bot] opened 3 months ago

canny[bot] commented 3 months ago

Bug

https://secondlife.canny.io/admin/board/webrtc-voice/p/webrtc-voice-input-output-not-working-as-expected

canny[bot] commented 3 months ago

This issue has been linked to a Canny post: [WebRTC] Voice input/output not working as expected :tada:

maestrolinden commented 3 months ago

As mentioned in Canny, I can reproduce this on my Windows 10 machine, for both input and output device - it seems like the viewer always uses the same input or output device when set to "Default", even when the actual Windows-default device (I tried changing both "Default Device" and "Default Communication Device") is something else.

roxanneskelly commented 3 months ago

Windows and Mac treat default devices differently, even when used through webrtc which is supposed to abstract things like this. Mac assumes the first device in the device list (index 0) is the default device. Windows provides a separate call to set the default device. So, a little special-casing was used to resolved this issue.

https://github.com/secondlife/viewer/pull/1108

maestrolinden commented 2 months ago

I tested the fix on build 7.1.4.8593664208 (64bit) on Win10, using the same audio setup that I originally reproduced this bug with.

Passes QA