From a237be3a838bf1be0e87b02967d036a48e145608 Mon Sep 17 00:00:00 2001 From: vicrodh <103399283+vicrodh@users.noreply.github.com> Date: Sat, 7 Feb 2026 20:37:31 -0600 Subject: [PATCH] Differentiate DAC Passthrough tooltip from ALSA Direct bit-perfect DAC badge tooltip now says "Active" instead of "Bit-perfect" since PipeWire passthrough is best-effort, not guaranteed bit-perfect like ALSA Direct hw:X,Y. Added a brief note in Settings when DAC Passthrough is enabled clarifying the distinction. Also i18n'd the hardcoded dacPassthroughTooltipOverride string in SettingsView. --- src/lib/components/AudioOutputBadges.svelte | 2 +- src/lib/components/views/SettingsView.svelte | 9 ++++++--- src/lib/i18n/locales/de.json | 4 +++- src/lib/i18n/locales/en.json | 4 +++- src/lib/i18n/locales/es.json | 4 +++- src/lib/i18n/locales/fr.json | 4 +++- 6 files changed, 19 insertions(+), 8 deletions(-) diff --git a/src/lib/components/AudioOutputBadges.svelte b/src/lib/components/AudioOutputBadges.svelte index 48dbc614a..9f4c29549 100644 --- a/src/lib/components/AudioOutputBadges.svelte +++ b/src/lib/components/AudioOutputBadges.svelte @@ -318,7 +318,7 @@
{$t('audioBadges.resamplingFix')} {/if} {:else if dacBadgeState === 'active'} - ✓ {$t('audioBadges.dacBitPerfect')} + ✓ {$t('audioBadges.dacPassthroughActive')} {#if hardwareStatus?.hardware_sample_rate}
{$t('audioBadges.kHzNative', { values: { rate: (hardwareStatus.hardware_sample_rate / 1000).toFixed(1) } })} {/if} diff --git a/src/lib/components/views/SettingsView.svelte b/src/lib/components/views/SettingsView.svelte index 76262af8f..aceae877e 100644 --- a/src/lib/components/views/SettingsView.svelte +++ b/src/lib/components/views/SettingsView.svelte @@ -585,9 +585,9 @@ : null ); let dacPassthroughDisabled = $derived(selectedBackend !== 'PipeWire'); - let dacPassthroughTooltipOverride = $derived( + let dacPassthroughTooltipOverrideKey = $derived( dacPassthroughDisabled - ? 'DAC Passthrough uses pw-metadata to force PipeWire sample rates. It is only compatible with the PipeWire backend.' + ? 'settings.audio.dacPassthroughDisabledDesc' : null ); let gaplessDisabled = $derived(dacPassthrough); @@ -2339,10 +2339,13 @@
{$t('settings.audio.dacPassthrough')} - {dacPassthroughTooltipOverride ?? $t('settings.audio.dacPassthroughDesc')} + {dacPassthroughTooltipOverrideKey ? $t(dacPassthroughTooltipOverrideKey) : $t('settings.audio.dacPassthroughDesc')}
+ {#if dacPassthrough} + {$t('settings.audio.dacPassthroughNote')} + {/if} {#if isFlatpak && selectedBackend === 'PipeWire' && dacPassthrough}
⚠️
diff --git a/src/lib/i18n/locales/de.json b/src/lib/i18n/locales/de.json index 2dbb0a37c..b85f6901c 100644 --- a/src/lib/i18n/locales/de.json +++ b/src/lib/i18n/locales/de.json @@ -406,7 +406,7 @@ "resamplingError": "FEHLER: PipeWire führt Resampling durch", "resamplingDetail": "Datei: {trackRate} kHz → Hardware: {hwRate} kHz", "resamplingFix": "Lösung: PipeWire-Abtastratenumschaltung konfigurieren", - "dacBitPerfect": "DAC-Passthrough: Bit-perfect", + "dacPassthroughActive": "DAC-Passthrough: Aktiv", "dacDisabled": "DAC-Passthrough: Deaktiviert", "exclusiveMode": "Exklusivmodus" }, @@ -494,6 +494,8 @@ "exclusiveModeNotAvailable": "Der Exklusivmodus ist nur mit dem ALSA-Direct-Backend verfügbar. PipeWire und PulseAudio sind gemultiplexte Audio-Server und können keinen echten exklusiven Zugriff bieten.", "dacPassthrough": "DAC-Passthrough", "dacPassthroughDesc": "Systemmixer umgehen für bitperfekte Ausgabe", + "dacPassthroughNote": "Bezieht sich auf den dekodierten Audio-Inhalt. DAC-Anzeigen zeigen möglicherweise das Transportformat, nicht die Inhaltsauflösung.", + "dacPassthroughDisabledDesc": "DAC-Passthrough verwendet pw-metadata, um PipeWire-Abtastraten zu erzwingen. Es ist nur mit dem PipeWire-Backend kompatibel.", "dacPassthroughExtendedDesc": "Wenn aktiviert, überschreibt es die obige Qualitätseinstellung, wenn Ihr Audiogerät die gewählte Abtastrate nicht unterstützt. Verhindert Resampling, um eine bitperfekte Wiedergabe zu gewährleisten.", "audioBackend": "Audio-Backend", "audioBackendDesc": "Wähle Audiosystem: Auto (empfohlen), PipeWire (modern), ALSA Direct (bitperfekt, exklusiv) oder PulseAudio (veraltet).", diff --git a/src/lib/i18n/locales/en.json b/src/lib/i18n/locales/en.json index 812816b03..a68789f16 100644 --- a/src/lib/i18n/locales/en.json +++ b/src/lib/i18n/locales/en.json @@ -420,7 +420,7 @@ "resamplingError": "ERROR: PipeWire is resampling", "resamplingDetail": "File: {trackRate} kHz → Hardware: {hwRate} kHz", "resamplingFix": "Fix: Configure PipeWire sample rate switching", - "dacBitPerfect": "DAC Passthrough: Bit-perfect", + "dacPassthroughActive": "DAC Passthrough: Active", "dacDisabled": "DAC Passthrough: Disabled", "exclusiveMode": "Exclusive Mode" }, @@ -510,6 +510,8 @@ "exclusiveModeNotAvailable": "Exclusive mode is only available with ALSA Direct backend. PipeWire and PulseAudio are multiplexed audio servers and cannot provide true exclusive access.", "dacPassthrough": "DAC Passthrough", "dacPassthroughDesc": "Bypass system mixer for bit-perfect output", + "dacPassthroughNote": "Refers to decoded audio content. DAC displays may show transport format, not content resolution.", + "dacPassthroughDisabledDesc": "DAC Passthrough uses pw-metadata to force PipeWire sample rates. It is only compatible with the PipeWire backend.", "dacPassthroughExtendedDesc": "When enabled, overrides the quality setting above if your audio device doesn't support the selected sample rate. Prevents resampling to guarantee bit-perfect playback.", "audioBackend": "Audio Backend", "audioBackendDesc": "Choose audio system: Auto (recommended), PipeWire (modern), ALSA Direct (bit-perfect, exclusive), or PulseAudio (legacy).", diff --git a/src/lib/i18n/locales/es.json b/src/lib/i18n/locales/es.json index 7db28934f..585385a39 100644 --- a/src/lib/i18n/locales/es.json +++ b/src/lib/i18n/locales/es.json @@ -420,7 +420,7 @@ "resamplingError": "ERROR: PipeWire está resampleando", "resamplingDetail": "Archivo: {trackRate} kHz → Hardware: {hwRate} kHz", "resamplingFix": "Solución: Configura el cambio de sample rate en PipeWire", - "dacBitPerfect": "Passthrough DAC: Bit-perfect", + "dacPassthroughActive": "Passthrough DAC: Activo", "dacDisabled": "Passthrough DAC: Desactivado", "exclusiveMode": "Modo Exclusivo" }, @@ -510,6 +510,8 @@ "exclusiveModeNotAvailable": "El modo exclusivo solo está disponible con ALSA Direct. PipeWire y PulseAudio son servidores de audio multiplexados y no pueden proporcionar acceso exclusivo real.", "dacPassthrough": "Passthrough DAC", "dacPassthroughDesc": "Bypass del mixer del sistema para salida bit-perfect", + "dacPassthroughNote": "Se refiere al contenido de audio decodificado. Las pantallas del DAC pueden mostrar el formato de transporte, no la resolución del contenido.", + "dacPassthroughDisabledDesc": "DAC Passthrough usa pw-metadata para forzar las tasas de muestreo de PipeWire. Solo es compatible con el backend PipeWire.", "dacPassthroughExtendedDesc": "Cuando está habilitado, anula la configuración de calidad anterior si tu dispositivo de audio no soporta la tasa de muestreo seleccionada. Previene el remuestreo para garantizar reproducción bit-perfect.", "audioBackend": "Backend de Audio", "audioBackendDesc": "Elige el sistema de audio: Auto (recomendado), PipeWire (moderno), ALSA Direct (bit-perfect, exclusivo), o PulseAudio (legado).", diff --git a/src/lib/i18n/locales/fr.json b/src/lib/i18n/locales/fr.json index 9ddc62625..31ce3358b 100644 --- a/src/lib/i18n/locales/fr.json +++ b/src/lib/i18n/locales/fr.json @@ -406,7 +406,7 @@ "resamplingError": "ERREUR : PipeWire effectue un rééchantillonnage", "resamplingDetail": "Fichier : {trackRate} kHz → Hardware : {hwRate} kHz", "resamplingFix": "Solution : Configurer le changement de taux d'échantillonnage PipeWire", - "dacBitPerfect": "Passthrough DAC : Bit-perfect", + "dacPassthroughActive": "Passthrough DAC : Actif", "dacDisabled": "Passthrough DAC : Désactivé", "exclusiveMode": "Mode exclusif" }, @@ -494,6 +494,8 @@ "exclusiveModeNotAvailable": "Le mode exclusif n'est disponible qu'avec le backend ALSA Direct. PipeWire et PulseAudio sont des serveurs audio multiplexés et ne peuvent pas fournir un accès exclusif véritable.", "dacPassthrough": "Passthrough DAC", "dacPassthroughDesc": "Contourner le mixeur système pour une sortie bit-perfect", + "dacPassthroughNote": "Concerne le contenu audio décodé. Les affichages du DAC peuvent montrer le format de transport, pas la résolution du contenu.", + "dacPassthroughDisabledDesc": "Le Passthrough DAC utilise pw-metadata pour forcer les taux d'échantillonnage PipeWire. Il n'est compatible qu'avec le backend PipeWire.", "dacPassthroughExtendedDesc": "Lorsqu'il est activé, remplace le paramètre de qualité ci-dessus si votre périphérique audio ne prend pas en charge la fréquence d'échantillonnage sélectionnée. Empêche le rééchantillonnage pour garantir une lecture bit-perfect.", "audioBackend": "Backend audio", "audioBackendDesc": "Choisissez le système audio : Auto (recommandé), PipeWire (moderne), ALSA Direct (bit-perfect, exclusif) ou PulseAudio (ancien).",