Fix audio CLI discovery for ADAT banks with over 256 streams #62

Open
github-bot wants to merge 2 commits from github-bot/gh-62 into main AGit
Owner

@⁠kaoru-maki on GitHub · 2026-11-26 10:57 UTC · original
kaoru-maki:patch-1 → main · +91 −1 · 2 files · 2 commits · open

Summary

--decode-audio skips ADAT banks with more than 256 declared streams. Check whether the stream table can fit in the bounded ADAT header, using the two-byte minimum per stream entry.

The regression test encodes silence at runtime and puts a 257-stream bank before a one-stream control bank. With a one-bank limit, the original CLI exports the control bank. The patched CLI exports all 257 WAVs from the first bank and the test checks their location and PCM frame count. All inputs are generated by the test.

Verification

  • The new test reproduced the failure on v1.7.0 and passed with the patch.
  • cargo test --offline --locked passed 170 tests on macOS arm64, with 10 ignored.
  • Separate CLI checks exported all expected WAVs from synthetic banks with 1, 256, 257 and 503 streams.
**@⁠kaoru-maki** on GitHub · 2026-11-26 10:57 UTC · [original](https://github.com/rpatty-dev/PercyStar/pull/62) `kaoru-maki:patch-1` → `main` · +91 −1 · 2 files · 2 commits · open ## Summary `--decode-audio` skips ADAT banks with more than 256 declared streams. Check whether the stream table can fit in the bounded ADAT header, using the two-byte minimum per stream entry. The regression test encodes silence at runtime and puts a 257-stream bank before a one-stream control bank. With a one-bank limit, the original CLI exports the control bank. The patched CLI exports all 257 WAVs from the first bank and the test checks their location and PCM frame count. All inputs are generated by the test. ## Verification - The new test reproduced the failure on v1.7.0 and passed with the patch. - `cargo test --offline --locked` passed 170 tests on macOS arm64, with 10 ignored. - Separate CLI checks exported all expected WAVs from synthetic banks with 1, 256, 257 and 503 streams.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 02:33:32 +00:00
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/62/head:github-bot/gh-62'
git switch 'github-bot/gh-62'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-62'
git switch 'github-bot/gh-62'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-62'
git switch 'github-bot/gh-62'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-62'
git switch 'main'
git merge --squash 'github-bot/gh-62'
git switch 'main'
git merge --ff-only 'github-bot/gh-62'
git switch 'main'
git merge 'github-bot/gh-62'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.