[win10] squeezelite ignores output assigned through windows settigns and uses system default instead
Description
When running squeezelite without setting an output device through -o <number>, squeezelite will always output sound to the system's default audio device, even if another output device is assigned through the windows settings.
Steps to reproduce
- Run squeezelite at least once, so that it'll show up in the windows audio settings.
- Open Windows Settings, System -> Sound -> App Volume And Device Preferences under "other"
- Assign Squeezelite to a different output than the system's default output
- Start squeezelite, without setting
-o, and start playback
Expected Result: Squeezelite will start playing to the previously selected device. Actual result: Squeezelite will instead use the default device vos playback.
Verions Squeezelite v1.9.9-1462 Windows 10 22H2, build 19045.3803
I have another Win11 device where everything works as intended
This remains a big problem for windows users. The correct default for Windows as listed using the -l option (on my machine, on this boot) is: 21 - Primary Sound Driver [Windows DirectSound] The number changes almost every boot meaning squeezelite can't be scheduled as a boot process and I need to hunt down the correct device number every boot and launch squeezelite manually.
You can use the string -o "Primary Sound Driver [Windows DirectSound] " on the command line, you don't have to use the number.