rootiest e83bc02563 fix(volume): average all channels instead of returning the first
Previously returned the first channel percentage found, which is
incorrect when channels are unbalanced. Average across all channels
matches what OS volume sliders display and avoids a misleading reading
in edge cases such as hard-panned mono (e.g. left=100%, right=0%
would have incorrectly reported 100% rather than 50%).

Add a test covering the unbalanced case.
2026-04-10 14:52:58 -04:00
S
Description
No description provided
75 KiB
Languages
Rust 100%