feat(ui): surface BitPerfectMode in QualityBadge (#288)

QualityBadge now has three new visual states wired off the
bit_perfect_mode field the backend emits in PlaybackEvent:

- DirectHardware → subtle green check next to the tier label,
  border tinted green. Reassurance that audiophile listeners are
  getting the stream untouched.
- PluginFallback → purple down-arrow + new tooltip explaining the
  DAC doesn't support the source rate so ALSA (plughw) is doing
  software resampling. The tooltip's suggested fix is explicit
  about the mitigation (pick lower-rate source or a broader DAC)
  since this is a hardware-capability constraint, not a user
  setting issue.
- Disabled / null → no change.

Plumbed through the existing playerStore subscription pattern so
the indicator reflects the stream the moment it opens. i18n keys
added for all 5 locales (en/es/de/fr/pt).

cc
This commit is contained in:
vicrodh committed 2026-04-13 19:38:06 -06:00
1 parent 8311cef821
commit 33761c6462
8 files changed
+110 -7

No files matched your search

+3
View File
@@ -687,6 +687,9 @@
"output": "Ausgabe",
"resampled": "Vom System resampled",
"qualityAdjusted": "Qualität für Gerätekompatibilität angepasst — bit-perfekt, kein Resampling",
"plughwFallback": "Von ALSA resampelt (plughw)",
"plughwFix": "Der DAC unterstützt diese Abtastrate nicht nativ. Wählen Sie eine Quelle mit niedrigerer Rate oder einen DAC mit breiterer Unterstützung.",
"bitPerfect": "Bit-perfekt: direkte Hardware-Ausgabe",
"fix": "Aktiviere DAC Passthrough oder Exklusivmodus in den Einstellungen"
},
"stereo": "Stereo",