Skip to content

fix: count AudioConverter sizes over all channels and bound them natively - #421

Merged
devopvoid merged 1 commit into
mainfrom
fix/audio-converter-sizes
Oct 23, 2026
Merged

devopvoid merged 1 commit into
mainfrom
fix/audio-converter-sizes

Conversation

@devopvoid

Copy link
Copy Markdown
Owner

The resampling path of AudioConverter took Java's total sample counts as samples per channel, so stereo with a changed sample rate read and wrote a frame past the arrays. All converters now count samples over all channels.

convertInternal is private and checks its arrays and counts natively. Invalid formats, including remixes too large for an AudioFrame, throw IllegalArgumentException instead of aborting.

…vely

The resampling path took the total sample counts from Java as samples per
channel, so stereo read and wrote twice a frame past the arrays. All converters
now count samples over all channels, and the views use the configured frames.

convertInternal is private and checks the arrays and counts itself; invalid
formats, including remixes too large for an AudioFrame, throw
IllegalArgumentException instead of aborting.
@devopvoid
devopvoid merged commit 2af5786 into main Oct 23, 2026
52 of 55 checks passed
@devopvoid
devopvoid deleted the fix/audio-converter-sizes branch October 23, 2026 05:53
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