# Changelog All notable changes to this project are documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] ## [0.1.1] - 2026-11-01 ### Fixed - A Windows or audio driver update that replaced a device's endpoint id broke the toggle with "nothing to switch to: neither ... is connected and enabled", although both devices were connected. Toggle Audio now also saves each device's stable id (Windows 11 24H2 and later). When a saved id stops working it finds the device by stable id, or by its exact name if exactly one connected device has that name, and updates the configuration itself. Existing configurations repair themselves on the next press. The normal toggle path makes no additional calls. - A device that really cannot be found is no longer reported as disconnected: the message says that Windows no longer has it and to choose a replacement in Settings. - The settings dialog opens with such a device selected at its new endpoint instead of listing it as "(not connected)". ### Added - winget manifests for `Hotdogee.ToggleAudio` under `installer/winget/` and a `winget` workflow that submits each new release to microsoft/winget-pkgs. - Code signing through SignPath Foundation, ready but not yet active: the release workflow submits the MSI to SignPath, which signs both executables inside it and the MSI, then builds the portable zip, `SHA256SUMS.txt` and the attestation from the signed files and checks every signature. It stays off until the SignPath secret and variables are set, so releases remain unsigned until then. A manual run of the workflow is a dry run that signs with SignPath's test certificate only and publishes nothing. - Code signing policy in the README, `docs/signing.md` (policy, release signing procedure, SignPath set-up) and the SignPath artifact configuration in `installer/signpath/`. - Release notes now state whether a release is signed ("Signed with SignPath Foundation certificate" or "Unsigned release") and link the code signing policy. ### Changed - The release workflow is split into a read-only build-and-sign job and a publish job that alone holds write permissions, and its third-party actions are pinned to commit SHAs. ## [0.1.0] - 2026-10-04 Initial native release; replaces the PowerShell proof of concept (`Switch-Audio.exe`, built with ps2exe, about 900 ms per toggle). ### Added - Instant toggle: `toggle-audio` flips the Windows default playback device between two configured endpoints in milliseconds. Sets the Console and Multimedia roles, plus Communications unless disabled (`switch_communications`, `--comm` / `--no-comm`). Falls back to the other device when the preferred one is unplugged, and reports an error instead of a silent no-op when neither is available. - Two native x64 executables with a static CRT and no runtime dependencies: `toggle-audio.exe` (console subsystem, `consoleAllocationPolicy = detached`, so no console window flashes on Windows 11 24H2 and later) and `toggle-audiow.exe` (GUI subsystem, never creates a console; for hotkeys on older Windows builds). - Command-line interface: `list` (active playback endpoints with id, name and default flags), `get` (current default device), `set ` (by endpoint id, exact friendly name or a part of a name that matches one device; an ambiguous name exits with code 4 and lists the matches), `settings`, `--help`, `--version` and `--timing` (per-phase timings on stderr). Documented exit codes 0 to 4. Unicode-safe output: UTF-16 to the console, UTF-8 when redirected. - Errors are shown in a message box when there is no console, so a failed hotkey press never fails silently. - Settings dialog (`toggle-audio settings`, Start Menu "Toggle Audio Settings"): pick Device 1 and Device 2 from the active playback devices, keep a disconnected device selectable, test the toggle before saving, and copy the program path for Logitech G HUB or any other launcher. - Per-user configuration in `%APPDATA%\toggle-audio\config.json`, stored by stable endpoint id and written atomically. - Per-machine MSI installer (WiX Toolset 7) into `C:\Program Files\Toggle Audio\` with a Start Menu shortcut, App Paths registration, an optional PATH entry, in-place upgrades and clean uninstall. - Reproducible benchmarks under `bench/`: optimized implementations in C, Rust, C# NativeAOT, Go and Zig plus PowerShell baselines, a shared CLI contract, a hyperfine harness and published results (`bench/RESULTS.md`, summarized in `docs/benchmarks.md`). - `THIRD-PARTY-NOTICES.txt` with the licenses of the statically linked crates, installed by the MSI and included in the zip. - Documentation: README with install, hotkey set-up (G HUB and other launchers), command-line and configuration reference, compatibility and troubleshooting notes; `docs/benchmarks.md`; `docs/packaging.md`. - Continuous integration (format, lint, tests, release build with a static C runtime check, benchmark builds, MSI build and validation) and tag-driven release automation with the MSI, a portable zip and `SHA256SUMS.txt`. [Unreleased]: https://github.com/hotdogee/toggle-audio/compare/v0.1.1...HEAD [0.1.1]: https://github.com/hotdogee/toggle-audio/compare/v0.1.0...v0.1.1 [0.1.0]: https://github.com/hotdogee/toggle-audio/releases/tag/v0.1.0