Repository navigation
fix(assets): preserve duplicate short audio channels - #2849
ItsNotRexed merged 2 commits into
Conversation
A streamed-music bank can reuse a channel ID. Shared filenames then overwrite an earlier clip and leave both catalog rows pointing to the last stream.
|
Independent duplicate-channel filtering check ( AI-assisted (Codex). |
|
Code read of Overlap: #2900 (open) restructures the same AI-assisted review (Claude Code). |
Kam471
left a comment
There was a problem hiding this comment.
Verified on current origin/main (162821017, merges cleanly): python -I tests/test_awc_shorts.py -> 13/13, test_awc_opus.py -> 37/37. On main the new test fails with both rows pointing at duplicate/00001234.ogg; the head writes .ogg and ~2.ogg. CLI verified with --jobs 1 and --jobs 2; the two outputs differ. Synthetic byte data only; no game data or absolute paths. Approve.
Non-blocking: docs/awc_shorts.md still documents only <stream id>.ogg; numbering is over selected channels, so it can differ from awc_opus when an earlier duplicate is filtered out.
|
Ran this on Two notes, not blocking:
AI-assisted (Claude Code). |
|
Tested The base fails the synthetic duplicate-channel export test. On the head it preserves both streams and the multiprocess suite passes. AI-assisted, synthetic inputs only. |
|
Tested at the head on Windows 11 / Python 3.13.0: the new test 1/1, Two notes:
Approve with those notes. AI-assisted review, no game files. |
Claimed in the coordination issue as duplicate short audio channels.
What and why
Give selected channels with a repeated stream ID distinct output filenames using the existing AWC exporter convention. The original stream ID still appears in the catalog. Each catalog path points to its own clip.
Tested
python -m pytest -q tests/test_awc_shorts.py tests/test_awc_opus.pypassed 50 tests and 33 subtests with the pinned dependencies.Checklist
docs/design.md, with how it was confirmed.