Skip to content

Opus: the 6.1 (7 channel) mapping has 5 streams, 2 coupled - #622

Closed
milas6669 wants to merge 1 commit into
xcl-dev:mainfrom
milas6669:opus-6-1-channel-mapping
Closed

milas6669 wants to merge 1 commit into
xcl-dev:mainfrom
milas6669:opus-6-1-channel-mapping

Conversation

@milas6669

Copy link
Copy Markdown
Contributor

The 7-channel (6.1) Vorbis mapping said 4 streams, 3 coupled. RFC 7845 section 5.1.1.2 gives 5 streams with 2 coupled pairs. One table row, and a test of the mappings for 3 to 8 channels.

Part of #327 (item 2). Items 1 and 3 are separate.

What is in it

  • opus.rs: the 7 => row of vorbis_mapping; test opus_head_vorbis_channel_mappings_match_rfc7845 (fails without the fix)

Tested

  • RTX 3070, Windows 11 Pro 10.0.26200, MSVC 19.44, Rust 1.100.0, debug build
  • cargo test --workspace -- --test-threads=4: 646 passed, 0 failed, 21 ignored
  • SKIPPED: gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware (no wave64)

Regression run

  • not run: no title on this machine to run scripts/smoke.ps1 against

Not tested

  • AMD, a retail title, scripts/smoke.ps1 main vs PR head

AI use

  • Claude Code, Claude Sonnet 5.5: wrote the code, the tests and this description. Reviewed and opened by the person submitting.

RFC 7845 section 5.1.1.2 gives 7 channels as 5 streams with 2 coupled pairs.
The table said 4 streams and 3 coupled, so a 6.1 Opus voice was split into the
wrong streams. Adds a test that checks the mappings of 3 to 8 channels.

Part of xcl-dev#327
@milas6669
milas6669 force-pushed the opus-6-1-channel-mapping branch from 9b88e88 to 8b98ba9 Compare November 24, 2026 02:46
@milas6669

Copy link
Copy Markdown
Contributor Author

Closing: #506 already covers this and was opened earlier. Please review it instead.

@milas6669 milas6669 closed this Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant