tdesktop icon indicating copy to clipboard operation
tdesktop copied to clipboard

selected audio output device is not respected during calls (uses two devices)

Open MrdUkk opened this issue 4 months ago • 2 comments

Steps to reproduce

  1. have at least two or more audio interfaces on Windows PC
  2. launch tdesktop
  3. in program settings -> speakers and cameras select NON DEFAULT audio output device (second). close dialog
  4. receive call from someone
  5. observe that ringing goes to selected in settings audio device BUT voice communication was from default windows audio device

Expected behaviour

expect tdesktop to use selected device for OUTPUT only. and don't use anything other.

Actual behaviour

actually i got tdesktop using all two sound devices (output ringing on selected, and voice on windows default).

In windows we hare 2 kinds of default devices:

  1. default device - All programs will have their audio played through this device (unless otherwise configured)
  2. default communications device - All calls/video call audio will be played through this device (unless otherwise configured) it will be cool then tdesktop can actually use this by default. Win32 API IMMDeviceEnumerator::GetDefaultAudioEndpoint have ERole parameter: use with eCommunications enum value.

Operating system

Windows

Version of Telegram Desktop

4.14.13 x64

Installation source

Static binary from official website

Crash ID

No response

Logs

No response

MrdUkk avatar Feb 10 '24 15:02 MrdUkk