From 24c03b1a1997a46ead9b4af10c5df9901129b8e0 Mon Sep 17 00:00:00 2001 From: Maxim Raznatovski Date: Sat, 21 Feb 2026 00:21:43 +0100 Subject: [PATCH] Fix DSP not applying for AirPlay and Sendspin players (#3191) --- music_assistant/helpers/audio.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/music_assistant/helpers/audio.py b/music_assistant/helpers/audio.py index ccf51e2b..2dd60995 100644 --- a/music_assistant/helpers/audio.py +++ b/music_assistant/helpers/audio.py @@ -1402,10 +1402,16 @@ def get_player_filter_params( """Get player specific filter parameters for ffmpeg (if any).""" filter_params = [] - dsp = mass.config.get_player_dsp_config(player_id) + player = mass.players.get_player(player_id) + # In case this is a protocol player, their DSP config is stored + # under the parent (native or universal) player that wraps them. + dsp_player_id = player_id + if player and player.protocol_parent_id: + dsp_player_id = player.protocol_parent_id + dsp = mass.config.get_player_dsp_config(dsp_player_id) limiter_enabled = True - if player := mass.players.get_player(player_id): + if player: if is_grouping_preventing_dsp(player): # We can not correctly apply DSP to a grouped player without multi-device DSP support, # so we disable it. -- 2.34.1