Recover misaligned ADAT stream tables when forward scan misses streams #57
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/rpatty-dev--PercyStar!57
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/57/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@worstgirlinamerica on GitHub · 2026-11-24 01:10 UTC · original
worstgirlinamerica:fix/awc-503-stream-table→main· +98 −10 · 1 files · 1 commits · merged 2026-11-24 11:05 UTCFixes #48
Summary
The ADAT parser kept a forward table candidate whenever it found any plausible
0x55chunks, even when that count disagreed with the header's declared stream count. Insound_5186_Resident_Frontend__Hud_503st.awc, the u32 candidate found 8 bogus entries for a 503-stream bank, so the existing backward recovery did not run. PercyStar showed 8 streams at an implausible 16,174 Hz instead of the 503 real 48 kHz streams.Changes
0x55chunks0x76sample rates with their corresponding0x55data chunksTesting
Issue #48 sample: 8 streams before -> 503 playable streams after; all 48 kHz, 462 mono and 41 stereo
Archive-wide screen: 41 count-mismatch candidates; 40 decoded all declared streams (5,656 tracks) with no decoder errors; one 9-stream candidate had only 3 playable streams after recovery and remains unexplained. Its previous forward candidate also failed to decode
PercyStar carver-to-player path on the issue sample,
sound_5186_Resident_Frontend__Hud_503st.awc, returned 503 trackssound_4183_2st.awc: unchanged at 1 stereo stream, 48 kHz, 200.04 ssound_4659_271st.awc: unchanged at 271 mono streams, 48 kHzFull test suite: 121 passed, 0 failed, 5 ignored
@rpatty-dev on GitHub · 2026-11-24 11:15 UTC · original
merged this one thank you so much for fixing the adat tables really appreciate it