projects
/
music-assistant-server.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1cf5cc3
)
feat: add DSP Config changed event (#2079)
author
Maxim Raznatovski
<nda.mr43@gmail.com>
Mon, 31 Mar 2025 20:04:52 +0000
(22:04 +0200)
committer
GitHub
<noreply@github.com>
Mon, 31 Mar 2025 20:04:52 +0000
(22:04 +0200)
feat: send `PLAYER_DSP_CONFIG_UPDATED` on DSP changes
music_assistant/controllers/config.py
patch
|
blob
|
history
diff --git
a/music_assistant/controllers/config.py
b/music_assistant/controllers/config.py
index bdd52e0b4903bfa85de08b79e55009ddb38af7f4..8fda17e0f4ef8e8aa353004845353fac1aba2f89 100644
(file)
--- a/
music_assistant/controllers/config.py
+++ b/
music_assistant/controllers/config.py
@@
-520,6
+520,12
@@
class ConfigController:
# Save and apply the new config to the player
self.set(f"{CONF_PLAYER_DSP}/{player_id}", config.to_dict())
await self.mass.players.on_player_dsp_change(player_id)
+ # send the dsp config updated event
+ self.mass.signal_event(
+ EventType.PLAYER_DSP_CONFIG_UPDATED,
+ object_id=player_id,
+ data=config,
+ )
return config
def create_default_player_config(