Skip to content

Fix group creation codec and slave lists, add exit() - #164

Open
SirScythe wants to merge 1 commit into
rytilahti:masterfrom
SirScythe:group-codec-exit
Open

SirScythe wants to merge 1 commit into
rytilahti:masterfrom
SirScythe:group-codec-exit

Conversation

@SirScythe

Copy link
Copy Markdown

This fixes a few issues with grouping I noticed while while implementing it for the SongPal integration in Home Assistant:

The codec settings that were previously used caused dropouts in audio after pausing and resuming playback. The replacements are what Sony's Music Center app sets and fixed the issue on my HT-ZF9 + SRS-X77 setup.

The songpal group add/remove commands weren't working due to an issue with how the slaves were passed between them so this was fixed by adding a new helper function.

Lastly it adds an exit() function so that a slave can leave its group independently of the leader.

I used an LLM for help in testing and writing the code.

- create() codec settings were causing audio dropouts after pausing and resuming playback in a group. Use the MusicCenter app's CodecType 0x0030 and CodecBitrate 0x0000 instead.
- add(), remove() and their *_m variants passed the slaves through as is so the CLI (which passes a tuple) could not add or remove slaves. They now accept a list or tuple of UUIDs like create(), or a string as before.
- Add exit() for a slave to leave its group (X_Exit).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant