Commit Graph

8 Commits

Author SHA1 Message Date
8b605a7b71 awc_opus: a kept Ogg still contributes its cue-sheet limit
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.
2026-11-30 14:54:47 +01:00
58bda6a728 tests/test_awc_markers: check directory entries instead of alias existence on folding volumes 2026-11-26 11:11:52 +01:00
b3a5a9e669 tools/awc_markers: guard --out paths with report_paths and write JSON atomically (AWC-MARKERS-ATOMIC-OUT-AND-PATH-GUARD) 2026-11-25 20:40:35 +01:00
e6be35abd3 awc_markers: fail incomplete bank scans before publishing counts (#6774)
Squash-merged after diff review of PR #6774 - awc_markers: preserve the report when a directory cannot be read
2026-11-23 10:01:55 -06:00
0a8a5522f9 Invalidate previous music cue regions before a bank re-export (#6867)
Squash-merged after diff review of PR #6867 - Invalidate previous music cue regions before a bank re-export
2026-11-23 09:48:53 -06:00
9d851c06b0 awc_markers: keep the search window while the next bank starts inside it
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>
2026-11-23 00:34:46 +02:00
9cf2350779 Merge origin/main into asset-303-awc-chunk-bd
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>
2026-11-23 00:25:57 +02:00
4de3ef8587 docs, tools: document AWC tag 0xBD marker events, add awc_markers.py (ASSET-303)
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>
2026-11-23 00:19:16 +02:00