Repository navigation
Play Sendspin audio at 24-bit - #112
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 50 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Bunton33
marked this pull request as ready for review
November 24, 2026 15:04
# Conflicts: # Integrations/ESPHome/Core.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Version: 26.11.24.2
What does this implement/fix?
Music Assistant can now send 24-bit FLAC to the CAST-1 over Sendspin (esphome/esphome#22313). The PCM5122 and I2S output move from 16-bit to 32-bit so the extra bits reach the DAC. The resamplers now pass the bit depth through, and the mixer widens each source to 32-bit exactly. Setting them to 32 would have added a fixed -3 dB to everything. Opus, Home Assistant media and announcements stay 16-bit and play at the same level as before.
The PCM5122's PLL runs from BCK at 64 fs, a mode in its datasheet. Static RAM is unchanged. Internal RAM grows 9.6 KB for the larger I2S DMA buffers, which stay allocated after the first playback.
This raises
min_versionto 2026.11.0, which is now stable. After merging, run Build and Publish Beta.Anyone who picked a 16-bit FLAC or PCM entry under Preferred Sendspin format in Music Assistant falls back to 24-bit FLAC, with a warning in the MA log. Automatic needs nothing.
Types of changes
Checklist / Checklijst:
Compiles on ESPHome 2026.11.0 (167,695 B static RAM). Not run on a CAST-1 yet. To bench it, play a 24-bit FLAC album and check the level matches the old firmware at the same volume, with no pops at start and stop. Check the minimum free internal heap with Ethernet, the Bluetooth proxy and an LED strip running. Then play an announcement over music, and group it with a 16-bit player. Also try changing Preferred Sendspin format between Opus and FLAC mid-song. Reading the code suggests a short burst of noise there, since the sample width changes mid-stream.
If user-visible functionality or configuration variables are added/modified:
🤖 Generated with Claude Code