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

Closed
Lum7nt wants to merge 1 commit from upstream-pr/1 into main
Lum7nt commented 2026-11-21 15:42:36 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Lum7nt on 2026-11-21T15:42:36Z.


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.
<!-- greyfinch-sync:ivall/xcl:issue:6530909096 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1). Originally posted by [Lum7nt](https://github.com/Lum7nt) on 2026-11-21T15:42:36Z. --- ## 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.
upstream-sync closed this pull request 2026-11-24 06:56:40 +00:00
ivall commented 2026-11-24 07:00:16 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by ivall on 2026-11-21T15:58:37Z.


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!

<!-- greyfinch-sync:ivall/xcl:comment:7065282215 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/1#issuecomment-7065282215). Originally posted by [ivall](https://github.com/ivall) on 2026-11-21T15:58:37Z. --- 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

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!1
No description provided.