merzleckeier found it: the early `continue` on an Ogg that --skip-existing keeps
also skipped `frame_limits[cid]`, so a rebuilt cue sheet described only the
channels this run wrote.
The kept file's own EOS granule is the authority - recomputing the limit from
this run's packets would describe a file that was not written - so read it back
with ogg_last_granule(). The regression test fails without the change.
Written with an AI assistant.
iter_banks read a fresh window of up to 1 MiB after every bank, so a run of
small banks cost a window each (found in review of #3916). A window is now
reused until the search leaves it; the report for audio.rpf is byte-identical.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
main gained the 0xbd cue-record decoder in rsc8_audio.py (4cf7e3e7). The
section in docs/audio_config.md now points at docs/rsc8_audio.md for the
record layout and keeps what is specific to the music banks; a test holds
awc_markers.events() to rsc8_audio.decode_marker_records().
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
docs/audio_config.md gains the measured 16-byte event layout of AWC tag 0xBD,
whole-corpus counts and the event-type table (hashes and counts only).
tools/awc_markers.py reports those counts from an archive, a bank or a folder
of banks; tests/test_awc_markers.py covers it with hand-built banks.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>