Repository navigation
feat: added option to start on a chosen device config - #45
Merged
Merged
Conversation
A device config can be set as the startup config: every launch begins on it, whichever config was active when Reverb closed. Switching configs during a session works as before; only the next launch goes back. "Last used" (the default) keeps today's behaviour. - Backend: Preferences.startupDeviceConfig. At launch, before the engine is built from the preferences, the startup config becomes the active one, so the engine opens that output first. A startup config that no longer exists is ignored. - App: "Config at startup" picker under the device config list (shown once there is a config). Deleting the startup config resets it to "Last used". - Strings in all four languages; GLOSSARY.md updated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Launches can now be set to start on the system default too, whichever config was active when Reverb closed. Stored as the reserved value "system-default" in startupDeviceConfig; config ids are nanoids or UUIDs, so none can collide with it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Launches can be set to begin on one Device config, or on the system default, whichever was active when Reverb closed. Switching during a session is unchanged; only the next launch goes back.
Settings → Audio Device configs System default Config A Config B + Config at startup [Last used ▾ | System default | Config A | Config B] (shown once a config exists) Device sample rateThe choice is stored in
startupDeviceConfig: a config id, the reserved"system-default"(config ids are nanoids or UUIDs, so none can be that), ornullfor Last used. Deleting the startup config resets the picker to Last used.Evidence
After: new test
a_launch_switches_to_the_startup_config:deviceConfigs.test.ts: saving keeps the startup choice; deleting the startup config clears it, and deleting another one leaves it alone; the picker value resolves to a config id,system-default, or Last used.cargo test -p reverb(93) andnpm test(211) pass;tsc --noEmitand clippy are clean.Tested by hand in the running app.
Merge Danger
Door: two-way
The new
startupDeviceConfigfield defaults tonull, so existing settings files load unchanged, and older versions ignore the unknown field.Blast Radius: startup
Runs on every launch, but changes nothing unless a startup choice is set. With one set, the engine opens that output at launch. If the choice is a locked config whose device is unplugged, Reverb pauses and waits, as a locked config already does.
🤖 Generated with Claude Code