feat: implement 3-state DAC badge and hardware sample rate detection

Backend changes:
- Add audio_diagnostics module to read actual hardware sample rate from /proc/asound
- New command get_hardware_audio_status() parses hw_params for real-time monitoring
- Add glob dependency for file pattern matching

Frontend (AudioOutputBadges):
- Implement 3-state DAC badge system:
  - Green: DAC passthrough working correctly (rates match)
  - Yellow: DAC passthrough ON but resampling detected (warning)
  - Gray: DAC passthrough OFF (intentionally disabled)
- Dynamic tooltips showing actual hardware sample rate
- Compare file sample rate vs hardware sample rate
- Increase tooltip z-index to 9999 to prevent occlusion issues
- Add pointer-events: none to tooltip to prevent interaction issues

Frontend (SettingsView):
- Replace hardcoded "192 kHz" with dynamic hardware sample rate
- Load and display actual hardware audio status
- Show format details (e.g., S32_LE) when available
- Display "No active playback" when no audio is playing
- Add muted styling for inactive state

Frontend (QualityBadge):
- Add native tooltip showing tier and format
- Add cursor: help to indicate interactivity

i18n:
- Add "noActivePlayback" translations (EN/ES)

This allows users to verify bit-perfect playback is working and detect
resampling issues that would compromise audio quality.
This commit is contained in:
vicrodh committed 2026-01-16 21:14:22 -06:00
1 parent 09881856d0
commit c810663c6f
9 files changed
+202 -14

No files matched your search

+2 -1
View File
@@ -303,7 +303,8 @@
"exclusiveModeDesc": "Bloquear dispositivo de audio para uso exclusivo",
"dacPassthrough": "Passthrough DAC",
"dacPassthroughDesc": "Bypass del mixer del sistema para salida bit-perfect",
"currentSampleRate": "Tasa de Muestreo Actual"
"currentSampleRate": "Tasa de Muestreo Actual",
"noActivePlayback": "Sin reproducción activa"
},
"playback": {
"title": "Reproducción",