AudioEndPointController
AudioEndPointController copied to clipboard
A Windows command-line program for listing audio end-points and setting the default
Set the locale to system's locale on startup to fix the bug that device names in Chinese or some other languages are displayed as '`??`'.
Now non-english characters displayed correctly without "???". See screenshot with output **Before** and **After** app's build **[here](https://pp.userapi.com/c824604/v824604076/202af/czH09xNkRT4.jpg)**
This allows other programs to capture the output. Previously, `EndPointController -a > foo.txt` and similar would generate an empty file instead of capturing the output.
Since the "device index" tends to change when you attach/detach devices, I've added an additional argument "-n" that will choose an end-point based on its friendly name, which remains constant.
If there's a device whose name is in Chinese or any other language or encoding, the name will be displayed as "?". For example: ``` >EndPointController.exe Audio Device 1: Realtek...
added input devices as an argument and improved default selection by caching