Add per-channel HCR volume config and alt+wheel routing#70
Merged
thePunderWoman merged 1 commit intomainfrom Apr 29, 2026
Merged
Add per-channel HCR volume config and alt+wheel routing#70thePunderWoman merged 1 commit intomainfrom
thePunderWoman merged 1 commit intomainfrom
Conversation
Introduces volumeChA=, volumeChB=, volumewheel=, and altvolumewheel= config options so voice and wav channel volumes can be set independently at startup, the volume wheel can target a specific channel, and holding the alt button while turning the wheel can control a different channel. Falls through to normal volumewheel behaviour when altvolumewheel=0. Co-Authored-By: Claude Sonnet 4.6 <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
volumeChA=andvolumeChB=config options to set independent startup volumes for HCR channels A and B (useful when wav files are significantly louder than the voice channel)volumewheel=to select which channel (global/voice/chA/chB) the volume wheel (L1 trigger) controlsaltvolumewheel=to select a different target channel when the alt button is held while turning the wheel;0falls through to normalvolumewheelbehaviourChanged files
include/params.h— 4 new fields + defaultssrc/config.cpp— parse the 4 new config keysinclude/audio.h/src/audio.cpp— per-channel startup init,applyHCRVolume()helper,setVolumeNoResponseroutes byvolumewheel, newsetAltVolumeNoResponseinclude/controller.h—setAltVolumeNoResponseforwardersrc/drive_controllers.cpp— L1 trigger checksisAltHeld()and dispatches to alt or normal volume pathexample_config.txt— documents all 4 new keys with examplesTest plan
pio test -e native— all 18 suites pass (new tests intest_audioandtest_processconfig)pio run— firmware builds cleanvolumeChA=30starts channel A quieter than voicevolumewheel=1scopes the wheel to voice onlyaltvolumewheel=2+ alt held adjusts chA while normal wheel adjusts according tovolumewheel🤖 Generated with Claude Code