mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:55:52 +01:00
[PR #2145] tools: skip Ogg Opus outputs that already exist, so a stopped audio e… #2150
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#2150
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/2145
Author: @fiestorra
Created: 11/26/2026
Status: 🔄 Open
Base:
main← Head:awc-skip-existing📝 Commits (1)
99de22ftools: skip Ogg Opus outputs that already exist, so a stopped audio export resumes📊 Changes
3 files changed (+54 additions, -9 deletions)
View changed files
📝
make_game.py(+3 -1)📝
tests/test_awc_opus.py(+23 -0)📝
tools/awc_opus.py(+28 -8)📄 Description
…xport resumes
awc_opus.py repacked every bank on every run, so a stopped assets run redid the whole Ogg Opus step: on one machine 664,446 .ogg files were already written and the restart began at bank 0. The stage marks the step done only after it finishes, so there was no per-bank resume.
--skip-existing leaves an output that exists alone before packing a music channel or writing a stream's .ogg/.wav, and make_game.py passes it in the audio step. The staged writer publishes atomically, so an existing file is always complete.
Measured on a 1 MB bank with 29 outputs: first export 0.8 s, second with the flag 0.23 s and 0 files rewritten, while the same export without the flag does rewrite them. tests/test_awc_opus.py covers that with the control.
Claimed in the coordination issue as:
Depends on:
Fixes:
What and why
Tested
GPUs tested:
AI-assisted:
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.