https://github.com/i5ucc/staticaudiodevices
A Windows utility that monitors and maintains your default audio device settings.
https://github.com/i5ucc/staticaudiodevices
script windows-audio windows-scripts
Last synced: 11 months ago
JSON representation
A Windows utility that monitors and maintains your default audio device settings.
- Host: GitHub
- URL: https://github.com/i5ucc/staticaudiodevices
- Owner: I5UCC
- Created: 2023-07-07T16:04:48.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-03-08T08:21:45.000Z (11 months ago)
- Last Synced: 2025-03-08T09:27:39.885Z (11 months ago)
- Topics: script, windows-audio, windows-scripts
- Language: C++
- Homepage:
- Size: 60.5 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
A Windows utility that monitors and maintains your default audio device settings.
# Installation
1. Download the [latest release](https://github.com/I5UCC/StaticAudioDevices/releases/latest)
2. Place `StaticAudioDevices.exe` in `shell:startup` or place it somewhere else and create a scheduled task for it.
3. Set your devices how you want them to stay before first launching `StaticAudioDevices.exe`
4. Run it once.
5. Profit???
# Configuration
`%appdata%/StaticAudioDevices` holds both the `config.json` and also log files.
## Reset default
Delete `config.json` and run the program again to generate it again.
## Change Monitoring Interval
Adjust `Interval` in the `config.json` file. In seconds.
# Building the Project
## Requirements
- Windows 10/11
- Visual Studio 2022 with:
- Windows SDK (10.0+)
- C++ Desktop development workload
- C++14 compiler support
## Dependencies
- nlohmann/json (header-only, included)
- Windows MMDevice API
- ole32.lib
- mmdevapi.lib
## Using Visual Studio 2022
1. Open `StaticAudioDevices.sln` in Visual Studio 2022
2. Select build configuration (Debug/Release)
3. Build (Ctrl+Shift+B)
## Using Developer Command Prompt
1. Navigate to project directory
2. run `msbuild StaticAudioDevices.sln /p:Configuration=Release /p:Platform=x64`
## Output
The compiled executable will be in:
- `x64\Release\StaticAudioDevices.exe` (Release build)
- `x64\Debug\StaticAudioDevices.exe` (Debug build)