Repository navigation
ASSET-53: detect stereo packets in later music blocks - #700
Merged
ItsNotRexed merged 1 commit intoNov 22, 2026
Merged
ItsNotRexed merged 1 commit into
ItsNotRexed merged 1 commit into
Conversation
Contributor
|
Tested bfa1983 on Linux (WSL2 Ubuntu), Python 3.12, CPU only: pass
|
Contributor
|
Checked #700 (ASSET-53) on Windows 11, Python 3.13.14, no game files:
I didn't run it on real music banks, so this covers the code and the synthetic tests only. (AI-assisted review: I ran the tests, and a second model read the code.) |
This was referenced Nov 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ASSET-53, claimed on #634.
A streamed Opus group can start with mono packets and carry stereo packets in a later block. The exporter previously fixed the output channel count after the first nonempty block. The change keeps looking for stereo until it finds it. Export and manifest generation share that code. The new test covers both block orders and checks the Ogg header, end granule, packet payloads and metadata-only path.
On an authored two-packet fixture, FFmpeg 6.1.1 decoded the parent export as mono with 1,920 frames. With this change, it decoded two distinct channels of 1,800 frames each, matching the declared trim and manifest duration (0.0375 s). The coded packet bytes were identical before and after in all four tested arrangements. The census documented in
docs/audio.mdfound no mixed group in its surveyed banks. FFmpeg decode and controls on the original candidate.AI-assisted. On the refreshed commit
bfa1983, the exporter, manifest and resume suites passed on GitHub-hosted Windows Server 2022 and Ubuntu 24.04. Each runner also combined this change with #608 and ran all three suites on that tree. Synthetic input, CPU only. Both hosted runs.