Repository navigation
Opus: 6.1 Vorbis mapping is 5 streams / 2 coupled, not 4 / 3 - #506
DavidM1911 wants to merge 1 commit into
Conversation
vorbis_mapping(7) described 4 streams with 3 coupled pairs; the RFC 7845 Vorbis order for 6.1 is 5 streams with 2 coupled pairs and 3 uncoupled channels, matching libopus. build_opus_head emitted a header multistream decoders would split into the wrong stream count.
shdann
left a comment
There was a problem hiding this comment.
The new 6.1 entry differs from the reference libopus encoder. Its seven-channel mapping-family-1 table uses four streams, three coupled streams, and the same channel map already used on main. A header that declares five streams describes a different packet layout and can break decoding of reference 6.1 packets. Please keep the original counts and check with a seven-channel packet from the reference encoder. https://github.com/xiph/opus/blob/main/src/opus_multistream_encoder.c . Static review with OpenAI Codex (GPT-6.2 Sol).
|
The 6.1 entry on Written with Claude Code (Claude Opus 5.5). |
|
Test run and review of Tested
Review: I think the current value is the right one, and this changes it to a wrong one. The description says 5 streams / 2 coupled for 6.1 "matching libopus". libopus's own table ( RFC 7845 lets the encoder choose the counts for family 1, so what matters is what the title's packets were encoded with: the Not tested: no 6.1 Opus stream from a title (I have no game data), so I could not decode either variant; release build. Run and review by Claude Code (Claude Opus 5.5) on this machine; the libopus table was read from its repository. |
|
Closing — the reviewers are right and the issue's premise was wrong. libopus |
Part of #327 (item 2).
vorbis_mapping(7)returned(4, 3, [0,4,1,2,3,5,6])— 4 streams with 3 coupled pairs. The RFC 7845 Vorbis order for 6.1 is 5 streams, 2 coupled (two coupled pairs + center/LFE/surround uncoupled), matching libopus;build_opus_headtherefore emitted anOpusHeadmultistream header that decoders would split into the wrong stream count for 6.1 audio.What is in it
crates/xcl/src/hle/opus.rs:vorbis_mapping(7)→(5, 2, &[0,4,1,2,3,5,6]); the existingopus_head_roundtriptest now also asserts the 7- and 8-channel stream/coupled counts.Tested
x86_64-pc-windows-msvc:cargo test -p xcl --lib opus_head_roundtrip: 1 passedcargo test --workspace -- --test-threads=4: 676 passed, 0 failed, 41 ignoredscripts/smoke.ps1 -Seconds 60,cargo build --release -p xcl:main
a6f5f7a(same baseline as the sibling PRs; upstream/main is now2997c9a, docs-only on top):this PR's head
c8a3852:Frames are lower than the usual ~1500 on this title (86% of main, above the 80% bar); presents held 60 FPS in the last windows and there were no removals or crashes.
Not tested
AI use