From 3daab1a967b8d9efe9648c00d73782b580311e67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Mon, 10 Aug 2026 02:38:30 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(audio):=20drop=20MEDIA=5FROL?= =?UTF-8?q?E,=20escape=20shared=20WirePlumber=20mute=20bucket?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit media.role=Movie keyed edith's volume/mute restore to the shared Output/Audio:media.role:Movie bucket — muted once by any video app, edith inherits Mute:yes on every launch. Private media.name bucket starts unmuted at 100% and still persists per-app volume. --- crates/engine-audio/src/lib.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/crates/engine-audio/src/lib.rs b/crates/engine-audio/src/lib.rs index 5b20979..014ef5a 100644 --- a/crates/engine-audio/src/lib.rs +++ b/crates/engine-audio/src/lib.rs @@ -170,7 +170,14 @@ fn run( properties! { *pw::keys::MEDIA_TYPE => "Audio", *pw::keys::MEDIA_CATEGORY => "Playback", - *pw::keys::MEDIA_ROLE => "Movie", + // Deliberately no MEDIA_ROLE: the session manager keys saved stream + // volume/mute by media.role before anything else, so declaring + // "Movie" put us in one bucket with every other video player on the + // box -- a mute somebody set on one of them last month came back as + // "edith has no sound", with nothing in the app to undo it. Without + // a role we get our own bucket, keyed by name, and start audible. + // Restoring stays ON: it is also what initialises the channel + // volumes, and a stream that opts out of it comes up at -inf dB. *pw::keys::AUDIO_CHANNELS => channels.to_string(), // Asks the graph to schedule us at our own quantum, which is what // keeps the fill below from under-delivering on a lazy sink.