Fix: Incorrect DSPState with synchronized playback (#1912)
authorMaxim Raznatovski <nda.mr43@gmail.com>
Mon, 27 Jan 2025 23:13:49 +0000 (00:13 +0100)
committerGitHub <noreply@github.com>
Mon, 27 Jan 2025 23:13:49 +0000 (00:13 +0100)
fix: always check if group is preventing DSP

music_assistant/helpers/audio.py

index b923353ea6c2401a07997459a89dae790e4c3690..55c931e59f04ba058a9e40447f22bc6ae23c9003 100644 (file)
@@ -220,7 +220,7 @@ def get_stream_dsp_details(
     """Return DSP details of all players playing this queue, keyed by player_id."""
     player = mass.players.get(queue_id)
     dsp = {}
-    group_preventing_dsp: bool = False
+    group_preventing_dsp = is_grouping_preventing_dsp(player)
 
     # We skip the PlayerGroups as they don't provide an audio output
     # by themselves, but only sync other players.
@@ -228,8 +228,6 @@ def get_stream_dsp_details(
         details = get_player_dsp_details(mass, player)
         details.is_leader = True
         dsp[player.player_id] = details
-    else:
-        group_preventing_dsp = is_grouping_preventing_dsp(player)
 
     if player and player.group_childs:
         # grouped playback, get DSP details for each player in the group