https://github.com/caesay/defsound
Import of DefSound from https://archive.codeplex.com/?p=defsound
https://github.com/caesay/defsound
Last synced: 8 months ago
JSON representation
Import of DefSound from https://archive.codeplex.com/?p=defsound
- Host: GitHub
- URL: https://github.com/caesay/defsound
- Owner: caesay
- License: mit
- Created: 2019-06-23T11:02:46.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-15T11:55:07.000Z (over 3 years ago)
- Last Synced: 2025-07-03T16:43:28.607Z (12 months ago)
- Language: C++
- Size: 35.2 KB
- Stars: 3
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Select Default Sound Render Device (using undocumented COM-interface IPolicyConfig).
**System Requirements**: Microsoft Windows Vista and later
Visual C++ Redistributable for Visual Studio 2013: [http://www.microsoft.com/en-us/download/details.aspx?id=40784](http://www.microsoft.com/en-us/download/details.aspx?id=40784)
## Run without parameters for show system tray icon
* right click: opens a context menu quick-change sound render device (audio endpoint)
* left double click: switch to next sound render device (audio endpoint)

* GDI+ hint on device switch

## Commad line parameters:
```DefSound.exe [,DEVICE...] [ROLE]```
* DEVICE - device description or zero-based index
* ROLE - role that the system has assigned to an audio endpoint device ([http://msdn.microsoft.com/en-us/library/windows/desktop/dd370842(v=vs.85).aspx](http://msdn.microsoft.com/en-us/library/windows/desktop/dd370842(v=vs.85).aspx)). Variants:
* ALL - all roles, default value
* CON - system notification sounds and voice commands
* MMEDIA - multimedia
* VOICE - voice communications
If you supply -1, it will switch to next sound render device (audio endpoint)
If you specify more than one device, then the list will be rotated so that the default device is the latest. Example:
| Default device before | Command line | Default device after |
| --------------------- | ------------ | -------------------- |
| 2 | DefSound.exe 0,1,2 | 0 |
| 0 | DefSound.exe 0,1,2 | 1 |
| 1 | DefSound.exe 0,1,2 | 2 |