diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index 6d3549ed..abb94839 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -121,6 +121,7 @@ use commands::{ player_get_audio_settings, player_get_autoplay_settings, player_get_cache_config, + player_get_eq_presets, player_get_queue, // Session management commands player_get_session, @@ -515,6 +516,12 @@ fn emit_backend_init_failed(app_handle: &tauri::AppHandle, backend: &'static str } /// Create the appropriate player backend for the current platform. +// playback_reporter/position_throttler are consumed only by the native audio +// backends (mpv/exo); on platforms using the webview audio backend they're unused. +#[cfg_attr( + not(any(target_os = "linux", target_os = "android")), + allow(unused_variables) +)] fn create_player_backend( app_handle: tauri::AppHandle, playback_reporter: Arc>>, @@ -615,11 +622,19 @@ fn create_player_backend( } } - // Fallback for other platforms + // Platforms with no native audio backend (e.g. Windows): render audio-only + // playback through a webview