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.
This commit is contained in:
vicrodh committed 2026-02-07 20:37:31 -06:00
1 parent be56ecff90
commit a237be3a83
6 files changed
+19 -8

No files matched your search

+1 -1
View File
@@ -318,7 +318,7 @@
<br><span class="setting-help">{$t('audioBadges.resamplingFix')}</span>
{/if}
{:else if dacBadgeState === 'active'}
✓ {$t('audioBadges.dacBitPerfect')}
✓ {$t('audioBadges.dacPassthroughActive')}
{#if hardwareStatus?.hardware_sample_rate}
<br><span class="setting-detail">{$t('audioBadges.kHzNative', { values: { rate: (hardwareStatus.hardware_sample_rate / 1000).toFixed(1) } })}</span>
{/if}
+6 -3
View File
@@ -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 @@
<div class="setting-row">
<div class="setting-info">
<span class="setting-label">{$t('settings.audio.dacPassthrough')}</span>
<span class="setting-desc">{dacPassthroughTooltipOverride ?? $t('settings.audio.dacPassthroughDesc')}</span>
<span class="setting-desc">{dacPassthroughTooltipOverrideKey ? $t(dacPassthroughTooltipOverrideKey) : $t('settings.audio.dacPassthroughDesc')}</span>
</div>
<Toggle enabled={dacPassthrough} onchange={handleDacPassthroughChange} disabled={dacPassthroughDisabled} />
</div>
{#if dacPassthrough}
<small class="setting-note">{$t('settings.audio.dacPassthroughNote')}</small>
{/if}
{#if isFlatpak && selectedBackend === 'PipeWire' && dacPassthrough}
<div class="flatpak-warning">
<div class="warning-icon">⚠️</div>