Skip to content

Play Sendspin audio at 24-bit - #112

Merged
Bunton33 merged 5 commits into
betafrom
claude/cast1-sendspin-24bit
Nov 24, 2026
Merged

Bunton33 merged 5 commits into
betafrom
claude/cast1-sendspin-24bit

Conversation

@Bunton33

@Bunton33 Bunton33 commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

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_version to 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

  • Bugfix (fixed change that fixes an issue)
  • New feature (thanks!)
  • Breaking change (repair/feature that breaks existing functionality)
  • Dependency Update - Does not publish
  • Other - Does not publish
  • Website of github readme file update - Does not publish
  • Github workflows - Does not publish

Checklist / Checklijst:

  • The code change has been tested and works locally
  • The code change has not yet been tested

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:

  • Added/updated documentation for the web page

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Bunton33 Bunton33 added the new-feature New feature or request label Nov 12, 2026
@coderabbitai

coderabbitai Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: b70f7881-3eda-4951-8479-8b73b80825be
Commits

Reviewing files that changed from the base of the PR and between 78a0d92 and c02a8bb.

Files selected for processing: 1

  • Integrations/ESPHome/Core.yaml
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

Bunton33 and others added 3 commits November 23, 2026 19:03
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
Bunton33 marked this pull request as ready for review November 24, 2026 15:04
# Conflicts:
#	Integrations/ESPHome/Core.yaml
@Bunton33
Bunton33 merged commit dc2d1ea into beta Nov 24, 2026
7 checks passed
@Bunton33
Bunton33 deleted the claude/cast1-sendspin-24bit branch November 24, 2026 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new-feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants