Repository navigation
Control the receiver's volume from the Mac's volume keys - #208
VimalMollyn wants to merge 5 commits into
Conversation
TargetBridge captures audio before the sender's own volume is applied. That means the volume keys on a MacBook never changed what the receiver played, and the same audio came out of both Macs unless you muted the MacBook by hand every time. This adds: - A volume slider in the menu bar panel, under the brightness slider. - Settings > Audio > "Volume keys adjust the receiver while audio is streamed". Volume up, down and mute change the receiver's volume instead of the Mac's own. Mute remembers the level and restores it on the next press. Needs Accessibility permission; the settings page shows a hint and a shortcut to System Settings until it's granted. - Settings > Audio > "Mute this Mac's speakers while audio is streamed". Mutes the Mac's output device when streaming starts and restores it when streaming stops. If you plug in headphones mid-session, they're muted too. Both settings are off by default, and nothing changes on the receiver side. Co-Authored-By: Claude Fable 5.1 <[email protected]>
The Settings window never set a colour scheme, so on a Mac in light mode its controls were light while the background and cards stayed dark. The background now matches the current appearance, and the shared card style tints with the primary colour instead of white. The dark main window looks exactly as before, and a light window gets soft grey cards. Co-Authored-By: Claude Fable 5.1 <[email protected]>
2a3f9b3 to
ff6c09c
Compare
|
Thank you for the contribution and the real-hardware testing. I am keeping this out of the small 3.6.1 maintenance candidate because it adds new audio behavior and currently conflicts with the development base. I would like to review the volume-key/local-mute work separately from the unrelated window-appearance change, then validate mute restoration, output-device changes, multiple sessions and both input roles before merging. No audio regression is being marked fixed by this PR yet. |
|
No problem, happy to contribute for an app I'm using almost everyday! |
Reconcile already-integrated PR heads without runtime changes, preserve rc.2 hardening, and add the appearance-only fix from #208 with rendering regressions. Fresh 200 Sender tests, universal Release build, Receiver/parser tests and focused guards pass. Stable-release gates remain documented; no release or installed apps are changed. Fixes #235. Fixes #224.
|
I have taken only the standalone Settings appearance commit ff6c09c into the 3.6 maintenance closeout (#236, now integrated into main via #218) to resolve #235. The original author and co-author attribution are preserved, and I added four rendering/contrast regressions. I have not merged the volume-key interception or local-output mute changes, so I am keeping this PR open for that separate audio review. |
TargetBridge captures audio before the sender's own volume is applied. That means the volume keys on a MacBook never changed what the receiver played, and the same audio came out of both Macs unless you muted the MacBook by hand every time.
This PR fixes that on the sender side. No receiver changes; existing receivers work as they are.
What's new
Both audio settings are off by default and only do anything while a connected session has "Stream audio" on.
Testing
Notes
mutedfield could be added later without breaking older receivers.TBReceiverVolumeKeys.swift(key decoding and stepping, unit tested),TBVolumeKeyBridge.swift(the event tap),TBLocalOutputMuter.swift(CoreAudio mute), plus wiring in the sender manager, the menu bar controller, the settings view, the language files and the docs.🤖 Generated with Claude Code