Skip to content

Commit

Permalink
Fix: Check for Chromecast groups in DSP compatiblity check (#1886)
Browse files Browse the repository at this point in the history
Fix: Check for `PlayerType.GROUP` in `is_grouping_preventing_dsp`
  • Loading branch information
maximmaxim345 authored Jan 19, 2025
1 parent fe63c1f commit 89bcb59
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions music_assistant/helpers/audio.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
ContentType,
MediaType,
PlayerFeature,
PlayerType,
StreamType,
VolumeNormalizationMode,
)
Expand Down Expand Up @@ -934,6 +935,9 @@ def is_grouping_preventing_dsp(player: Player) -> bool:
# PlayerGroups have no leader, so having a child count of 1 means
# the group actually contains only a single player.
is_multiple_devices = child_count > 1
elif player.type == PlayerType.GROUP:
# This is an group player external to Music Assistant.
is_multiple_devices = True
else:
is_multiple_devices = child_count > 0
return is_multiple_devices and not multi_device_dsp_supported
Expand Down

0 comments on commit 89bcb59

Please sign in to comment.