From 6794f002599d3e958b60bc98d8adcc3e74cda3ef Mon Sep 17 00:00:00 2001 From: vicrodh <103399283+vicrodh@users.noreply.github.com> Date: Sun, 8 Feb 2026 16:27:21 -0600 Subject: [PATCH] QualityBadge: hardware rate detection + custom tooltip Poll get_hardware_audio_status every 2s to get the actual hardware sample rate from /proc/asound. Compare decoded rate (kHz) vs hardware rate (Hz) for real downgrade detection instead of relying on originalSamplingRate which comes from the same decoder. Replace native title attribute with custom tooltip (matching AudioOutputBadges style) for the degraded state, showing source rate, output rate, resampling warning, and settings fix hint. --- src/lib/components/QualityBadge.svelte | 151 +++++++++++++++++++++++-- 1 file changed, 139 insertions(+), 12 deletions(-) diff --git a/src/lib/components/QualityBadge.svelte b/src/lib/components/QualityBadge.svelte index c91deae90..7779d038c 100644 --- a/src/lib/components/QualityBadge.svelte +++ b/src/lib/components/QualityBadge.svelte @@ -1,5 +1,12 @@