diff --git a/src-tauri/src/commands/playback.rs b/src-tauri/src/commands/playback.rs index 04c7198e4..4e02e1bc0 100644 --- a/src-tauri/src/commands/playback.rs +++ b/src-tauri/src/commands/playback.rs @@ -26,7 +26,6 @@ fn parse_quality(quality_str: Option<&str>) -> Quality { /// Limit quality based on device's max sample rate /// This ensures bit-perfect playback by not requesting tracks that exceed device capabilities -#[allow(dead_code)] fn limit_quality_for_device(quality: Quality, max_sample_rate: Option) -> Quality { let Some(max_rate) = max_sample_rate else { return quality; // No limit if device max rate unknown @@ -88,12 +87,38 @@ pub async fn play_track( ) -> Result { let preferred_quality = parse_quality(quality.as_deref()); - // NOTE: limit_quality_to_device disabled in 1.1.9 — was causing incorrect downgrades (#45) - // The feature code is preserved but disconnected until the detection logic is reliable. + // Apply per-device sample rate limit if enabled + let final_quality = { + let guard = audio_settings + .store + .lock() + .map_err(|e| format!("Lock error: {}", e))?; + if let Some(store) = guard.as_ref() { + if let Ok(settings) = store.get_settings() { + if settings.limit_quality_to_device { + // Get the device ID (use current output device or "default") + let device_id = settings.output_device.as_deref().unwrap_or("default"); + // Get per-device limit, falling back to global limit + let max_rate = settings + .device_sample_rate_limits + .get(device_id) + .copied() + .or(settings.device_max_sample_rate); + limit_quality_for_device(preferred_quality, max_rate) + } else { + preferred_quality + } + } else { + preferred_quality + } + } else { + preferred_quality + } + }; log::info!( - "Command: play_track {} (duration: {:?}s, quality_str={:?}, parsed={:?}, format_id={})", - track_id, duration_secs, quality, preferred_quality, preferred_quality.id() + "Command: play_track {} (duration: {:?}s, quality_str={:?}, parsed={:?}, final={:?}, format_id={})", + track_id, duration_secs, quality, preferred_quality, final_quality, final_quality.id() ); // First check offline cache (persistent disk cache) @@ -133,7 +158,7 @@ pub async fn play_track( state.client.clone(), state.audio_cache.clone(), &state.queue, - preferred_quality, + final_quality, skip_prefetch, ); @@ -160,7 +185,7 @@ pub async fn play_track( state.client.clone(), state.audio_cache.clone(), &state.queue, - preferred_quality, + final_quality, skip_prefetch, ); @@ -188,7 +213,7 @@ pub async fn play_track( state.client.clone(), state.audio_cache.clone(), &state.queue, - preferred_quality, + final_quality, skip_prefetch, ); @@ -218,9 +243,9 @@ pub async fn play_track( let client = state.client.read().await; - // Get the stream URL with preferred quality + // Get the stream URL with final quality (after per-device limiting) let stream_url = client - .get_stream_url_with_fallback(track_id, preferred_quality) + .get_stream_url_with_fallback(track_id, final_quality) .await .map_err(|e| format!("Failed to get stream URL: {}", e))?; @@ -283,7 +308,7 @@ pub async fn play_track( state.client.clone(), state.audio_cache.clone(), &state.queue, - preferred_quality, + final_quality, streaming_only, ); @@ -318,7 +343,7 @@ pub async fn play_track( state.client.clone(), state.audio_cache.clone(), &state.queue, - preferred_quality, + final_quality, streaming_only, ); @@ -332,16 +357,40 @@ pub async fn prefetch_track( quality: Option, state: State<'_, AppState>, offline_cache: State<'_, OfflineCacheState>, - _audio_settings: State<'_, AudioSettingsState>, + audio_settings: State<'_, AudioSettingsState>, ) -> Result<(), String> { let preferred_quality = parse_quality(quality.as_deref()); - // NOTE: limit_quality_to_device disabled in 1.1.9 — was causing incorrect downgrades (#45) - // The feature code is preserved but disconnected until the detection logic is reliable. + // Apply per-device sample rate limit if enabled + let final_quality = { + let guard = audio_settings + .store + .lock() + .map_err(|e| format!("Lock error: {}", e))?; + if let Some(store) = guard.as_ref() { + if let Ok(settings) = store.get_settings() { + if settings.limit_quality_to_device { + let device_id = settings.output_device.as_deref().unwrap_or("default"); + let max_rate = settings + .device_sample_rate_limits + .get(device_id) + .copied() + .or(settings.device_max_sample_rate); + limit_quality_for_device(preferred_quality, max_rate) + } else { + preferred_quality + } + } else { + preferred_quality + } + } else { + preferred_quality + } + }; log::info!( - "Command: prefetch_track {} (quality_str={:?}, parsed={:?}, format_id={})", - track_id, quality, preferred_quality, preferred_quality.id() + "Command: prefetch_track {} (quality_str={:?}, parsed={:?}, final={:?}, format_id={})", + track_id, quality, preferred_quality, final_quality, final_quality.id() ); let cache = state.audio_cache.clone(); @@ -382,7 +431,7 @@ pub async fn prefetch_track( let client = state.client.read().await; let stream_url = client - .get_stream_url_with_fallback(track_id, preferred_quality) + .get_stream_url_with_fallback(track_id, final_quality) .await .map_err(|e| format!("Failed to get stream URL: {}", e))?; drop(client); diff --git a/src-tauri/src/config/audio_settings.rs b/src-tauri/src/config/audio_settings.rs index 160364a10..af8d77904 100644 --- a/src-tauri/src/config/audio_settings.rs +++ b/src-tauri/src/config/audio_settings.rs @@ -5,6 +5,7 @@ use crate::audio::{AlsaPlugin, AudioBackendType}; use rusqlite::{params, Connection}; use serde::{Deserialize, Serialize}; +use std::collections::HashMap; use std::path::Path; use std::sync::{Arc, Mutex}; @@ -30,6 +31,10 @@ pub struct AudioSettings { /// Cached max sample rate of the selected device (set when device is selected) /// Used when limit_quality_to_device is true pub device_max_sample_rate: Option, + /// Per-device sample rate limits: device_id -> max_sample_rate + /// Allows different DACs to have independent max sample rate configurations + #[serde(default)] + pub device_sample_rate_limits: HashMap, /// When true, apply volume normalization using ReplayGain metadata. /// When false (default), the audio pipeline is 100% bit-perfect — no sample modification. pub normalization_enabled: bool, @@ -56,6 +61,7 @@ impl Default for AudioSettings { streaming_only: false, // Disabled by default (cache tracks for instant replay) limit_quality_to_device: false, // Disabled in 1.1.9 — detection logic unreliable (#45) device_max_sample_rate: None, // Set when device is selected + device_sample_rate_limits: HashMap::new(), // Per-device limits (empty = no limit) normalization_enabled: false, // Off by default — preserves bit-perfect pipeline normalization_target_lufs: -14.0, // Spotify/YouTube standard gapless_enabled: false, // Off by default — user opts in @@ -139,6 +145,10 @@ impl AudioSettingsStore { "ALTER TABLE audio_settings ADD COLUMN gapless_enabled INTEGER DEFAULT 0", [], ); + let _ = conn.execute( + "ALTER TABLE audio_settings ADD COLUMN device_sample_rate_limits TEXT", + [], + ); Ok(Self { conn }) } @@ -157,7 +167,7 @@ impl AudioSettingsStore { pub fn get_settings(&self) -> Result { self.conn .query_row( - "SELECT output_device, exclusive_mode, dac_passthrough, preferred_sample_rate, backend_type, alsa_plugin, alsa_hardware_volume, stream_first_track, stream_buffer_seconds, streaming_only, limit_quality_to_device, device_max_sample_rate, normalization_enabled, normalization_target_lufs, gapless_enabled FROM audio_settings WHERE id = 1", + "SELECT output_device, exclusive_mode, dac_passthrough, preferred_sample_rate, backend_type, alsa_plugin, alsa_hardware_volume, stream_first_track, stream_buffer_seconds, streaming_only, limit_quality_to_device, device_max_sample_rate, normalization_enabled, normalization_target_lufs, gapless_enabled, device_sample_rate_limits FROM audio_settings WHERE id = 1", [], |row| { // Parse backend_type from JSON string @@ -170,6 +180,12 @@ impl AudioSettingsStore { .get::<_, Option>(5)? .and_then(|s| serde_json::from_str(&s).ok()); + // Parse device_sample_rate_limits from JSON string + let device_sample_rate_limits: HashMap = row + .get::<_, Option>(15)? + .and_then(|s| serde_json::from_str(&s).ok()) + .unwrap_or_default(); + Ok(AudioSettings { output_device: row.get(0)?, exclusive_mode: row.get::<_, i64>(1)? != 0, @@ -183,6 +199,7 @@ impl AudioSettingsStore { streaming_only: row.get::<_, Option>(9)?.unwrap_or(0) != 0, limit_quality_to_device: row.get::<_, Option>(10)?.unwrap_or(1) != 0, device_max_sample_rate: row.get::<_, Option>(11)?.map(|r| r as u32), + device_sample_rate_limits, normalization_enabled: row.get::<_, Option>(12)?.unwrap_or(0) != 0, normalization_target_lufs: row.get::<_, Option>(13)?.unwrap_or(-14.0) as f32, gapless_enabled: row.get::<_, Option>(14)?.unwrap_or(0) != 0, @@ -324,6 +341,64 @@ impl AudioSettingsStore { Ok(()) } + /// Set the sample rate limit for a specific device + /// If rate is None, removes the limit for that device + pub fn set_device_sample_rate_limit( + &self, + device_id: &str, + rate: Option, + ) -> Result<(), String> { + // Get current limits + let mut limits = self.get_device_sample_rate_limits()?; + + // Update or remove the limit for this device + if let Some(r) = rate { + limits.insert(device_id.to_string(), r); + } else { + limits.remove(device_id); + } + + // Serialize and save + let json = serde_json::to_string(&limits) + .map_err(|e| format!("Failed to serialize device sample rate limits: {}", e))?; + + self.conn + .execute( + "UPDATE audio_settings SET device_sample_rate_limits = ?1 WHERE id = 1", + params![json], + ) + .map_err(|e| format!("Failed to set device sample rate limits: {}", e))?; + Ok(()) + } + + /// Get the sample rate limit for a specific device + /// Returns None if no limit is set for this device + pub fn get_device_sample_rate_limit(&self, device_id: &str) -> Result, String> { + let limits = self.get_device_sample_rate_limits()?; + Ok(limits.get(device_id).copied()) + } + + /// Get all device sample rate limits + fn get_device_sample_rate_limits(&self) -> Result, String> { + let json: Option = self + .conn + .query_row( + "SELECT device_sample_rate_limits FROM audio_settings WHERE id = 1", + [], + |row| row.get(0), + ) + .map_err(|e| format!("Failed to get device sample rate limits: {}", e))?; + + match json { + Some(s) if !s.is_empty() => { + serde_json::from_str(&s).map_err(|e| { + format!("Failed to parse device sample rate limits: {}", e) + }) + } + _ => Ok(HashMap::new()), + } + } + pub fn set_normalization_enabled(&self, enabled: bool) -> Result<(), String> { self.conn .execute( @@ -368,6 +443,10 @@ impl AudioSettingsStore { .transpose() .map_err(|e| format!("Failed to serialize ALSA plugin: {}", e))?; + // Serialize per-device limits (empty on reset) + let limits_json = serde_json::to_string(&defaults.device_sample_rate_limits) + .map_err(|e| format!("Failed to serialize device sample rate limits: {}", e))?; + self.conn .execute( "UPDATE audio_settings SET @@ -385,7 +464,8 @@ impl AudioSettingsStore { device_max_sample_rate = ?12, normalization_enabled = ?13, normalization_target_lufs = ?14, - gapless_enabled = ?15 + gapless_enabled = ?15, + device_sample_rate_limits = ?16 WHERE id = 1", params![ defaults.output_device, @@ -403,6 +483,7 @@ impl AudioSettingsStore { defaults.normalization_enabled as i64, defaults.normalization_target_lufs as f64, defaults.gapless_enabled as i64, + limits_json, ], ) .map_err(|e| format!("Failed to reset audio settings: {}", e))?; @@ -630,6 +711,42 @@ pub fn set_audio_device_max_sample_rate( store.set_device_max_sample_rate(rate) } +/// Set the sample rate limit for a specific device +/// If rate is None, removes the limit for that device +#[tauri::command] +pub fn set_device_sample_rate_limit( + state: tauri::State<'_, AudioSettingsState>, + device_id: String, + rate: Option, +) -> Result<(), String> { + log::info!( + "Command: set_device_sample_rate_limit device={} rate={:?}", + device_id, + rate + ); + let guard = state + .store + .lock() + .map_err(|e| format!("Lock error: {}", e))?; + let store = guard.as_ref().ok_or("No active session - please log in")?; + store.set_device_sample_rate_limit(&device_id, rate) +} + +/// Get the sample rate limit for a specific device +/// Returns None if no limit is set +#[tauri::command] +pub fn get_device_sample_rate_limit( + state: tauri::State<'_, AudioSettingsState>, + device_id: String, +) -> Result, String> { + let guard = state + .store + .lock() + .map_err(|e| format!("Lock error: {}", e))?; + let store = guard.as_ref().ok_or("No active session - please log in")?; + store.get_device_sample_rate_limit(&device_id) +} + #[tauri::command] pub fn set_audio_normalization_enabled( state: tauri::State<'_, AudioSettingsState>, diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index e5acc39f7..74ffefb03 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -844,6 +844,8 @@ pub fn run() { config::audio_settings::set_audio_streaming_only, config::audio_settings::set_audio_limit_quality_to_device, config::audio_settings::set_audio_device_max_sample_rate, + config::audio_settings::set_device_sample_rate_limit, + config::audio_settings::get_device_sample_rate_limit, config::audio_settings::set_audio_normalization_enabled, config::audio_settings::set_audio_normalization_target, config::audio_settings::set_audio_gapless_enabled, diff --git a/src/lib/components/views/SettingsView.svelte b/src/lib/components/views/SettingsView.svelte index ca87d0db1..e147e6846 100644 --- a/src/lib/components/views/SettingsView.svelte +++ b/src/lib/components/views/SettingsView.svelte @@ -5,7 +5,7 @@ import { getCurrentWebview } from '@tauri-apps/api/webview'; import { writeText as copyToClipboard } from '@tauri-apps/plugin-clipboard-manager'; import { ask } from '@tauri-apps/plugin-dialog'; - import { ArrowLeft, ChevronRight, ChevronDown, ChevronUp, Loader2, Sun, Moon, SunMoon, HelpCircle, Ban, AlertTriangle } from 'lucide-svelte'; + import { ArrowLeft, ChevronRight, ChevronDown, ChevronUp, Loader2, Sun, Moon, SunMoon, HelpCircle, Ban, AlertTriangle, RefreshCw } from 'lucide-svelte'; import Toggle from '../Toggle.svelte'; import Dropdown from '../Dropdown.svelte'; import DeviceDropdown from '../DeviceDropdown.svelte'; @@ -508,7 +508,17 @@ let streamFirstTrack = $state(false); let streamBufferSeconds = $state(3); let streamingOnly = $state(false); - let limitQualityToDevice = $state(false); // Disabled in 1.1.9 — detection unreliable (#45) + let limitQualityToDevice = $state(false); // Re-enabled in 1.2.x with manual per-device config + let deviceMaxSampleRate = $state(null); // Per-device max sample rate + + // Sample rate options for the dropdown + const sampleRateOptions = [ + { value: 44100, label: '44.1 kHz (CD)' }, + { value: 48000, label: '48 kHz (DVD)' }, + { value: 96000, label: '96 kHz (Hi-Res)' }, + { value: 192000, label: '192 kHz (Hi-Res+)' }, + { value: 384000, label: '384 kHz (DSD)' }, + ]; // Backend system state let availableBackends = $state([]); @@ -2045,6 +2055,16 @@ } } + async function handleRefreshDevices() { + if (isLoadingDevices) return; + const backendType = selectedBackend === 'ALSA Direct' ? 'Alsa' : + selectedBackend === 'PipeWire' ? 'PipeWire' : + selectedBackend === 'PulseAudio' ? 'Pulse' : null; + if (backendType) { + await loadBackendDevices(backendType); + } + } + async function loadFlatpakStatus() { try { isFlatpak = await invoke('is_running_in_flatpak'); @@ -2121,8 +2141,12 @@ streamFirstTrack = settings.stream_first_track ?? false; streamBufferSeconds = settings.stream_buffer_seconds ?? 3; streamingOnly = settings.streaming_only ?? false; - limitQualityToDevice = settings.limit_quality_to_device ?? true; + limitQualityToDevice = settings.limit_quality_to_device ?? false; gaplessPlayback = settings.gapless_enabled ?? true; + + // Load per-device sample rate limit + const deviceId = settings.output_device ?? 'default'; + await loadDeviceSampleRateLimit(deviceId); } catch (err) { console.error('Failed to load audio settings:', err); } @@ -2337,6 +2361,31 @@ } } + async function handleDeviceMaxSampleRateChange(rate: number | null) { + deviceMaxSampleRate = rate; + // Get current device ID + const device = deviceByDisplayName.get(outputDevice); + const deviceId = outputDevice === 'System Default' ? 'default' : device?.id ?? 'default'; + + try { + await invoke('set_device_sample_rate_limit', { deviceId, rate }); + console.log('[Audio] Device max sample rate changed:', deviceId, rate); + } catch (err) { + console.error('[Audio] Failed to change device max sample rate:', err); + } + } + + async function loadDeviceSampleRateLimit(deviceId: string) { + try { + const rate = await invoke('get_device_sample_rate_limit', { deviceId }); + deviceMaxSampleRate = rate; + console.log('[Audio] Loaded sample rate limit for', deviceId, ':', rate); + } catch (err) { + console.error('[Audio] Failed to load device sample rate limit:', err); + deviceMaxSampleRate = null; + } + } + async function handleBackendDeviceChange(deviceName: string) { outputDevice = deviceName; @@ -2354,6 +2403,8 @@ await invoke('set_audio_output_device', { device: deviceId }); // Store device's max sample rate for quality limiting await invoke('set_audio_device_max_sample_rate', { rate: maxSampleRate }); + // Load per-device sample rate limit for the new device + await loadDeviceSampleRateLimit(deviceId ?? 'default'); // Reinitialize audio - position and audio data preserved for resume. await reinitAndResume(deviceId); console.log('[Audio] Backend device changed:', deviceName, '(id:', deviceId ?? 'default', ', max_rate:', maxSampleRate ?? 'unknown', ')'); @@ -2944,8 +2995,36 @@ onchange={handleQualityChange} /> - - +
+
+ {$t('settings.audio.limitQualityToDevice')} + {$t('settings.audio.limitQualityToDeviceDesc')} +
+ +
+ {#if limitQualityToDevice} +
+
+ {$t('settings.audio.maxSampleRate')} + {$t('settings.audio.maxSampleRateDesc')} +
+ o.value === deviceMaxSampleRate)?.label ?? 'No limit' : 'No limit'} + options={['No limit', ...sampleRateOptions.map(o => o.label)]} + onchange={(label) => { + if (label === 'No limit') { + handleDeviceMaxSampleRateChange(null); + } else { + const option = sampleRateOptions.find(o => o.label === label); + if (option) handleDeviceMaxSampleRateChange(option.value); + } + }} + wide + expandLeft + compact + /> +
+ {/if}
{$t('settings.audio.audioBackend')} @@ -3001,6 +3080,13 @@ wide expandLeft /> +
{:else if selectedBackend === 'PipeWire'} - + {:else} - + {/if}
{#if showAlsaPluginSelector} diff --git a/src/lib/i18n/locales/de.json b/src/lib/i18n/locales/de.json index 8b70e3752..dbb9190aa 100644 --- a/src/lib/i18n/locales/de.json +++ b/src/lib/i18n/locales/de.json @@ -549,7 +549,10 @@ "loadingAudioDevices": "Audiogeräte werden geladen...", "parsingHardware": "Hardwareinformationen werden analysiert", "limitQualityToDevice": "Qualität auf Gerät beschränken", - "limitQualityToDeviceDesc": "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.", + "limitQualityToDeviceDesc": "Wenn aktiviert, wird die Streaming-Qualität auf die maximale Abtastrate Ihres DACs begrenzt. Verhindert das Anfordern von Formaten, die Ihr Gerät nicht nativ abspielen kann.", + "maxSampleRate": "Maximale Abtastrate", + "maxSampleRateDesc": "Wählen Sie die maximale Abtastrate Ihres DACs. Tracks über dieser Rate werden von Qobuz in niedrigerer Qualität angefordert.", + "refreshDevices": "Geräteliste aktualisieren", "alsaPlugin": "ALSA-Plugin", "alsaPluginDesc": "hw: Bitperfekt, exklusiv. plughw: Automatische Konvertierung. pcm: Am kompatibelsten.", "hardwareVolume": "Hardware-Lautstärkeregelung aktivieren", diff --git a/src/lib/i18n/locales/en.json b/src/lib/i18n/locales/en.json index a340f3233..ff38f202e 100644 --- a/src/lib/i18n/locales/en.json +++ b/src/lib/i18n/locales/en.json @@ -559,7 +559,10 @@ "loadingAudioDevices": "Loading audio devices...", "parsingHardware": "Parsing hardware information", "limitQualityToDevice": "Limit Quality to Device", - "limitQualityToDeviceDesc": "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.", + "limitQualityToDeviceDesc": "When enabled, limits streaming quality to your DAC's maximum sample rate. Prevents requesting formats your device can't play natively.", + "maxSampleRate": "Maximum Sample Rate", + "maxSampleRateDesc": "Select your DAC's maximum supported sample rate. Tracks above this rate will be requested at a lower quality from Qobuz.", + "refreshDevices": "Refresh device list", "alsaPlugin": "ALSA Plugin", "alsaPluginDesc": "hw: Bit-perfect, exclusive. plughw: Auto-convert. pcm: Most compatible.", "hardwareVolume": "Enable Hardware Volume Control", diff --git a/src/lib/i18n/locales/es.json b/src/lib/i18n/locales/es.json index 5488d9093..130b225b2 100644 --- a/src/lib/i18n/locales/es.json +++ b/src/lib/i18n/locales/es.json @@ -559,7 +559,10 @@ "loadingAudioDevices": "Cargando dispositivos de audio...", "parsingHardware": "Analizando información de hardware", "limitQualityToDevice": "Limitar Calidad al Dispositivo", - "limitQualityToDeviceDesc": "Cuando está activado, anula la configuración de calidad si tu dispositivo de audio no soporta la tasa de muestreo seleccionada. Previene el remuestreo para garantizar reproducción bit-perfect.", + "limitQualityToDeviceDesc": "Cuando está activado, limita la calidad de streaming a la tasa de muestreo máxima de tu DAC. Evita solicitar formatos que tu dispositivo no puede reproducir nativamente.", + "maxSampleRate": "Tasa de Muestreo Máxima", + "maxSampleRateDesc": "Selecciona la tasa de muestreo máxima de tu DAC. Los tracks por encima de esta tasa se solicitarán a Qobuz en una calidad inferior.", + "refreshDevices": "Actualizar lista de dispositivos", "alsaPlugin": "Plugin ALSA", "alsaPluginDesc": "hw: Bit-perfect, exclusivo. plughw: Auto-conversión. pcm: Más compatible.", "hardwareVolume": "Habilitar Control de Volumen por Hardware", diff --git a/src/lib/i18n/locales/fr.json b/src/lib/i18n/locales/fr.json index 67f0b2aea..49255f8d1 100644 --- a/src/lib/i18n/locales/fr.json +++ b/src/lib/i18n/locales/fr.json @@ -549,7 +549,10 @@ "loadingAudioDevices": "Chargement des périphériques audio...", "parsingHardware": "Analyse des informations matérielles", "limitQualityToDevice": "Limiter la qualité à l'appareil", - "limitQualityToDeviceDesc": "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.", + "limitQualityToDeviceDesc": "Lorsqu'il est activé, limite la qualité de streaming à la fréquence d'échantillonnage maximale de votre DAC. Empêche de demander des formats que votre appareil ne peut pas lire nativement.", + "maxSampleRate": "Fréquence d'échantillonnage maximale", + "maxSampleRateDesc": "Sélectionnez la fréquence d'échantillonnage maximale de votre DAC. Les pistes au-dessus de ce taux seront demandées à Qobuz à une qualité inférieure.", + "refreshDevices": "Actualiser la liste des appareils", "alsaPlugin": "Plugin ALSA", "alsaPluginDesc": "hw : Bit-perfect, exclusif. plughw : Conversion automatique. pcm : Le plus compatible.", "hardwareVolume": "Activer le contrôle matériel du volume",