View Issue Details

IDProjectCategoryView StatusLast Update
0005158The Dark ModSound Systempublic07.10.2022 16:28
ReporterBikerdude Assigned To 
PrioritynormalSeverityfeatureReproducibilityalways
Status newResolutionopen 
PlatformPCOSWindowsOS Version8.1 & 10 (21H2)
Product VersionTDM 2.10 
Summary0005158: TDM dosent dynamically detect default sound device
Descriptionin this instance I alternate between sound card output and my bluetooth headphones, the issue is TDM will only output sound to the device listed as windows system default upon startup.

If I then change the default sound device to my bluetooth headphones from the sound card, TDM will not dynamically detect the change.

Most contemporary games I play will dynamically detect the change of sound device.
TagsNo tags attached.

Activities

nbohr1more

nbohr1more

07.10.2022 02:26

developer   ~0015312

A little investigation here.
It seems that GLFW does not have any audio device detection but SDL does ( I think SDL was voted against due to bloat ? )
Without SDL, we would need to have "WM_DEVICECHANGE" detection in Windows and use "Udev" device detection in Linux. ( Not sure about Mac ? )
nbohr1more

nbohr1more

07.10.2022 16:28

developer   ~0015313

Hmm...

The github repo for GLFW has an include for dbt.h ( the library that registers WM_DEVICECHANGE ) and even included DBT_ events.
I guess we currently don't use that part of GLFW but maybe we could add it?

https://github.com/glfw/glfw/blob/3a60992a418aad88717db32353bec22e8bb7dab3/src/win32_platform.h

https://github.com/glfw/glfw/blob/d299d9f78857e921b66bdab42c7ea27fe2e31810/src/win32_init.c

Issue History

Date Modified Username Field Change
17.02.2020 12:50 Bikerdude New Issue
08.03.2020 12:24 Bikerdude Description Updated
06.08.2022 10:37 Bikerdude Product Version TDM 2.07 => TDM 2.10
06.10.2022 17:22 Bikerdude Description Updated
06.10.2022 17:22 Bikerdude Additional Information Updated
07.10.2022 02:26 nbohr1more Note Added: 0015312
07.10.2022 08:46 Bikerdude OS Version 8.1 => 8.1 & 10 (21H2)
07.10.2022 16:28 nbohr1more Note Added: 0015313