/
/
# What does this implement/fix? When a live source (Spotify Connect, AirPlay-in, line-in, ...) plays on a speaker, we publish which audio each listening player receives and whether that audio is bit perfect. That report kept a single "decoded to" format for the whole source, not one per player. So as soon as a second speaker started listening to the same source at a different sample rate, it overwrote the format of the first one, and the first speaker's bit-perfect badge flipped to the wrong answer. The snapshot published the moment the second speaker joined was built from the previous speaker's format as well, so it briefly showed the wrong badge for the new speaker too. Each listening player's output already records the format it receives, so the check now reads it from there. **Related issue (if applicable):** - follow-up on #5983 ## Types of changes - [ ] Bugfix (non-breaking change which fixes an issue) — `bugfix` - [ ] New feature (non-breaking change which adds functionality) — `new-feature` - [ ] Enhancement to an existing feature — `enhancement` - [ ] New music/player/metadata/plugin provider — `new-provider` - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) — `breaking-change` - [ ] Refactor (no behaviour change) — `refactor` - [ ] Documentation only — `documentation` - [x] Maintenance / chore — `maintenance` - [ ] CI / workflow change — `ci` - [ ] Dependencies bump — `dependencies` ## Changes - the bit-perfect check for a live source uses each listening player's own audio format instead of one format shared by the whole source selection - the source snapshot no longer carries a PCM format, so it can no longer go stale - tests for two players listening to the same source at different sample rates ## Checklist - [x] The code change is tested and works locally. - [x] `pre-commit run --all-files` passes. - [x] `pytest` passes, and tests have been added/updated under `tests/` where applicable. - [ ] For changes to shared models, the companion PR in `music-assistant/models` is linked. - [ ] For changes affecting the UI, the companion PR in `music-assistant/frontend` is linked. - [x] I have read and complied with the project's [AI Policy](https://github.com/music-assistant/.github/blob/main/AI_POLICY.md) for any AI-assisted contributions. - [ ] I have [raised a PR against the documentation repository](https://github.com/music-assistant/music-assistant.io/blob/main/CONTRIBUTING.md) targeting the main or beta branch as appropriate.