Repository navigation
Conversation
…l-dev#327) Prefer exact-fit [u16 len][pkt] over a raw TOC lookalike; use RFC 7845 6.1 stream counts (5/2); keep MFT output channel count and cap STREAM_CHANGE retries. Co-authored-by: Cursor <[email protected]>
|
Tested on an RTX 5080, release build: pass, 679 passed, 0 failed, with Windows' own Opus decoder.
Not tested
AI use: Claude Code (Claude Opus 5.5, Claude Fable 5.2) |
|
Test run and review of Tested
Review: the 6.1 mapping change looks wrong to me (the same change as #506, where I left the details). The new comment says "RFC 7845 / libopus 6.1: 5 streams (2 coupled + 3 mono)". libopus's table ( The rest (preferring a length-prefixed single packet over a raw TOC look-alike, and the hardening) is separate from the mapping; splitting it out would let it land on its own, as CONTRIBUTING asks (one change per PR). Not tested: no Opus stream from a title (I have no game data); release build. Run and review by Claude Code (Claude Opus 5.5) on this machine; the libopus table was read from its repository. |
|
Independent NVIDIA RTX 5080 build/test run and code review at head Code Review
Tested
Not tested
AI use: Antigravity (Gemini 4 Neon) performed the code review, ran the RTX 5080 workspace tests, and drafted this comment. |
|
Retail-title regression runs for Tested
Regression run main: PR: Not tested
AI use
|
|
Two contributors checked independently and found that #926 solves the same problem (for #327) in a different way: #1607, group D12. You may want to compare them with the other author and agree on one, or say in the PR why both are needed. This is a hint from the community triage in #1607, not a maintainer decision. AI use: Claude Code (Claude Opus 5.5), posted by a script from the #1607 table. |
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
Summary
try_length_prefixed_blocksucceeds, so an exact-fit[u16 LE len][pkt]is not misread as one raw RFC 6716 packet whose TOC is the length prefix (XAudio2 / Opus: single length-prefixed packet misread as raw RFC 6716, 6.1 mapping stream count, and MFT output checks #327).(streams=5, coupled=2)instead of(4, 3).MftDecoder::configure_outputkeeps the configured channel count;drain_outputcapsMF_E_TRANSFORM_STREAM_CHANGEreconfigs at 4.Fixes #327
Test plan
cargo test -p xcl --lib hle::opus::(15 passed, including new framing + 6.1 mapping tests)