fix(audioout): accept a 3D latency of 1 in sceAudioOut2Set3DLatency #889

Merged
alfalfa-star merged 1 commit from upstream-pr/889 into main 2026-10-06 21:14:19 +00:00
alfalfa-star commented 2026-10-06 13:10:36 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by alfalfa-star on 2026-10-06T13:10:36Z.


What

Accept a 3D latency of 1 in sceAudioOut2Set3DLatency, which threw for it.

PPSA14632 (LEGO Horizon Adventures, Unreal Engine) calls sceAudioOut2Set3DLatency(0xFF, 1) during its audio setup (eboot 0x5613e2c). The user ID is 0xFF, or 0 when a flag in the audio object is clear; 0xFF was passed in every run. Like PPSA26344, it sets only edi and esi, and it treats a nonzero return as a failed audio setup. #649 accepted only the (0xFF, 2) that PPSA26344 passes, so this title stopped there. Latency 1 and 2 are now accepted for the system user; 0, 3 and other users still throw, as the unit and range are still unknown. The TechnicalDebt entry lists both known calls.

Tested

  • Arch Linux, GCC 16.2, Release. audio_out2_latency now accepts (0xFF, 1) and checks that 0 still throws; it fails on main. Full ctest: 359/359.
  • LEGO Horizon Adventures (PPSA14632) on Linux, together with #861, #722, #723, #732, #734 and local stubs for its other missing imports: the call returns 0, and the title continues through save data and shader compilation to an unrelated scePadReadState throw (#890).
  • Windows not built or tested.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • AI-assisted: yes

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4759203970 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/889). Originally posted by [alfalfa-star](https://github.com/alfalfa-star) on 2026-10-06T13:10:36Z. --- ### What Accept a 3D latency of 1 in `sceAudioOut2Set3DLatency`, which threw for it. PPSA14632 (LEGO Horizon Adventures, Unreal Engine) calls `sceAudioOut2Set3DLatency(0xFF, 1)` during its audio setup (eboot 0x5613e2c). The user ID is 0xFF, or 0 when a flag in the audio object is clear; 0xFF was passed in every run. Like PPSA26344, it sets only edi and esi, and it treats a nonzero return as a failed audio setup. #649 accepted only the `(0xFF, 2)` that PPSA26344 passes, so this title stopped there. Latency 1 and 2 are now accepted for the system user; 0, 3 and other users still throw, as the unit and range are still unknown. The TechnicalDebt entry lists both known calls. ### Tested <!-- OS, title or homebrew, what was checked. "Not tested" is a valid answer. --> - Arch Linux, GCC 16.2, Release. `audio_out2_latency` now accepts `(0xFF, 1)` and checks that 0 still throws; it fails on `main`. Full ctest: 359/359. - LEGO Horizon Adventures (PPSA14632) on Linux, together with #861, #722, #723, #732, #734 and local stubs for its other missing imports: the call returns 0, and the title continues through save data and shader compilation to an unrelated `scePadReadState` throw (#890). - Windows not built or tested. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed in [TechnicalDebt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/TechnicalDebt.md#silent-stubs) - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] AI-assisted: yes 🤖 Generated with [Claude Code](https://claude.com/claude-code)
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
boykopovar/AnyPS5!889
No description provided.