I have 2 audio output devices:
- 5.1 Speaker System attached via Toslink
- Gaming Headset attached via USB
Is there a simple way to change which device is the default output device, from the command-line? I'm interested in scripting it.
Perhaps take a look at the AudioSwitch project, it has also command-line options.
Examples:
AudioSwitch.exe -i 1
-- will change 1'th device as default and run AudioSwitch. AudioSwitch.exe -i 0 -x
-- will change 0'th device as default and exit. AudioSwitch.exe -l -i 0 -x
-- will show device list, set 0'th device as default and exit.