Implement XSystemGetDeviceType/PLS thunks and Opus audio carrier parsing #1

Closed
github-bot wants to merge 1 commit from gh-pr/1/head into gh-pr/1/base
Owner

@⁠Lum7nt on GitHub · 2026-11-21 15:42 UTC · original
Lum7nt:feature/audio-opus-decoder → main · +122 −9 · 3 files · 1 commits · closed without merging

Summary

  • XSystem Thunks (api.rs): Implemented slot 5 (XSystemGetDeviceType) returning Anaconda (Xbox Series X) device type (7) and wired XPLS persistent storage COM class candidate.
  • XAudio2 Opus Bridge (xaudio2.rs): Added WAVE_FORMAT_OPUS (0x704F) carrier voice handling, RFC 6716 packet header parsing, 48 kHz sample duration calculation, and audio telemetry.
  • Verification: Added unit tests for Opus packet header decoding; all 132 library tests pass.
**@⁠Lum7nt** on GitHub · 2026-11-21 15:42 UTC · [original](https://github.com/xcl-dev/xcl/pull/1) `Lum7nt:feature/audio-opus-decoder` → `main` · +122 −9 · 3 files · 1 commits · closed without merging ## Summary - **XSystem Thunks (api.rs)**: Implemented slot 5 (XSystemGetDeviceType) returning Anaconda (Xbox Series X) device type (7) and wired XPLS persistent storage COM class candidate. - **XAudio2 Opus Bridge (xaudio2.rs)**: Added WAVE_FORMAT_OPUS (0x704F) carrier voice handling, RFC 6716 packet header parsing, 48 kHz sample duration calculation, and audio telemetry. - **Verification**: Added unit tests for Opus packet header decoding; all 132 library tests pass.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:03:22 +00:00
github-bot closed this pull request 2026-11-26 04:03:22 +00:00
Author
Owner

@⁠ivall on GitHub · 2026-11-21 15:58 UTC · original

Hey, thanks for this! Both XGameRuntime bits already landed on main in the meantime, and slot 5 is actually XSystemGetAppSpecificDeviceId (device type comes from the registry), and the real PLS class is f4faf4d4. The Opus part only outputs silence for now and the frame durations are a bit off vs RFC 6716, so I'll close this one. If you're up for a real Opus decoder, that'd be awesome as a new PR on top of current main!

**@⁠ivall** on GitHub · 2026-11-21 15:58 UTC · [original](https://github.com/xcl-dev/xcl/pull/1#issuecomment-7065282215) Hey, thanks for this! Both XGameRuntime bits already landed on main in the meantime, and slot 5 is actually XSystemGetAppSpecificDeviceId (device type comes from the registry), and the real PLS class is f4faf4d4. The Opus part only outputs silence for now and the frame durations are a bit off vs RFC 6716, so I'll close this one. If you're up for a real Opus decoder, that'd be awesome as a new PR on top of current main!

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.