feat(libSceAudio3d): report supported port attributes #5968

Merged
MarcZX10 merged 2 commits from upstream-pr/5968 into main 2026-10-16 22:15:46 +00:00
MarcZX10 commented 2026-10-14 17:28:11 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-14T17:28:11Z.


What

Implement sceAudio3dPortGetAttributesSupported for open Audio3d ports. Report the three attributes already accepted by sceAudio3dPortSetAttribute, support count-only and capacity-limited queries, and return the existing invalid-parameter and invalid-port errors for invalid arguments. Add guest-test coverage for these cases.

Tested

  • ninja -C /tmp/AnyPS5-pixel-interlock-build -j4 guest_audio3d_port_tests — passed (target already up to date)
  • ctest --test-dir /tmp/AnyPS5-pixel-interlock-build -R '^guest_audio3d_port$' --output-on-failure — unable to run: host CPU lacks LZCNT, BMI1/2, MOVBE, AVX2, and FMA, required by the emulator
  • python3 tools/check_conventions.py --base upstream/main — passed
  • python3 tools/check_test_registration.py /tmp/AnyPS5-pixel-interlock-build — passed
  • git diff --check — passed

Checklist

  • Based on current main; no open PR implements this function
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw; no silent stubs added
  • No notes, investigation files, images or third-party code added
  • Generic behavior, not specific to one title
  • Depends on: none
  • Unblocks: none (related report #5954 was closed by its reporter)
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4861800619 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5968). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-14T17:28:11Z. --- ### What Implement `sceAudio3dPortGetAttributesSupported` for open Audio3d ports. Report the three attributes already accepted by `sceAudio3dPortSetAttribute`, support count-only and capacity-limited queries, and return the existing invalid-parameter and invalid-port errors for invalid arguments. Add guest-test coverage for these cases. ### Tested - `ninja -C /tmp/AnyPS5-pixel-interlock-build -j4 guest_audio3d_port_tests` — passed (target already up to date) - `ctest --test-dir /tmp/AnyPS5-pixel-interlock-build -R '^guest_audio3d_port$' --output-on-failure` — unable to run: host CPU lacks LZCNT, BMI1/2, MOVBE, AVX2, and FMA, required by the emulator - `python3 tools/check_conventions.py --base upstream/main` — passed - `python3 tools/check_test_registration.py /tmp/AnyPS5-pixel-interlock-build` — passed - `git diff --check` — passed ### Checklist - [x] Based on current `main`; no open PR implements this function - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except technical debt - [x] Unimplemented paths throw; no silent stubs added - [x] No notes, investigation files, images or third-party code added - [x] Generic behavior, not specific to one title - [x] Depends on: none - [x] Unblocks: none (related report #5954 was closed by its reporter) - [x] GPUs tested: n/a - [x] AI-assisted: yes
github-actions[bot] commented 2026-10-14 17:29:01 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-14T17:29:01Z.


Progress report (b260d8d → aa00274)

➖ System libraries: 88.83% (+0.0%, +1 implemented functions)

✅ 1 implemented
Library Name
libSceAudio3d sceAudio3dPortGetAttributesSupported
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6174303619 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5968#issuecomment-6174303619). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-14T17:29:01Z. --- <!-- progress-report --> ### Progress report (b260d8d → aa00274) ➖ **System libraries**: 88.83% (+0.0%, +1 implemented functions) <details> <summary>✅ 1 implemented</summary> | Library | Name | | - | - | | libSceAudio3d | `sceAudio3dPortGetAttributesSupported` | </details>
github-actions[bot] commented 2026-10-14 23:36:31 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-14T23:36:31Z.


Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.

Pull request Shared files not compared
PR 6044 core/libs/tests/GuestAudio3dPort.cpp
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6180862669 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5968#issuecomment-6180862669). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-14T23:36:31Z. --- <!-- pr-overlap --> Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap. | Pull request | Shared files not compared | |---|---| | [PR 6044](https://www.github.com/boykopovar/AnyPS5/pull/6044) | `core/libs/tests/GuestAudio3dPort.cpp` |
011010 commented 2026-10-15 00:02:14 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by 011010 on 2026-10-15T00:02:14Z.


Heads up on the overlap the bot flagged between this and #6148: both implement sceAudio3dPortGetAttributesSupported, and both touch core/libs/prx/libSceAudio3d/Export.cpp and core/libs/tests/GuestAudio3dPort.cpp.

Yours should go first. It is the smaller change, and it is the one that unblocks the title on its own: FIFA 21 (PPSA01327) stops on FAIL: unresolved ELF import 9ZA23Ia46Po from libSceAudio3d.prx, which is exactly this export (reported in #5954).

So I will rebase #6148 on this, drop my copy of sceAudio3dPortGetAttributesSupported in favour of yours, and mark it Depends on: #5968. No action needed from you — merge whenever you are ready and I will follow.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6181193602 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5968#issuecomment-6181193602). Originally posted by [011010](https://github.com/011010) on 2026-10-15T00:02:14Z. --- Heads up on the overlap the bot flagged between this and #6148: both implement `sceAudio3dPortGetAttributesSupported`, and both touch `core/libs/prx/libSceAudio3d/Export.cpp` and `core/libs/tests/GuestAudio3dPort.cpp`. Yours should go first. It is the smaller change, and it is the one that unblocks the title on its own: FIFA 21 (`PPSA01327`) stops on `FAIL: unresolved ELF import 9ZA23Ia46Po from libSceAudio3d.prx`, which is exactly this export (reported in #5954). So I will rebase #6148 on this, drop my copy of `sceAudio3dPortGetAttributesSupported` in favour of yours, and mark it `Depends on: #5968`. No action needed from you — merge whenever you are ready and I will follow.
jotitadev commented 2026-10-15 20:04:09 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by jotitadev on 2026-10-15T20:04:09Z.

Review: COMMENTED


Linux run (Ubuntu 26.04, Intel i7-8700, GCC 15.2, full build, non-GPU tests), head 640f32e5f merged onto main 44df21632.

  • The description says guest_audio3d_port could not run on the author's CPU; here it runs and passes, as does guest_audio3d_parameters.
  • With Export.cpp from main the test does not link (undefined reference to sceAudio3dPortGetAttributesSupported).

Non-GPU suite (ctest -E "^agc"): same result as main; only file_writer_binary and file_writer_text fail, and they fail on main too on this machine (Ubuntu 26.04 coreutils).

Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5539185507 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5968#pullrequestreview-5539185507). Originally posted by [jotitadev](https://github.com/jotitadev) on 2026-10-15T20:04:09Z. **Review:** COMMENTED --- Linux run (Ubuntu 26.04, Intel i7-8700, GCC 15.2, full build, non-GPU tests), head `640f32e5f` merged onto `main` `44df21632`. - The description says `guest_audio3d_port` could not run on the author's CPU; here it runs and passes, as does `guest_audio3d_parameters`. - With `Export.cpp` from `main` the test does not link (`undefined reference to sceAudio3dPortGetAttributesSupported`). Non-GPU suite (`ctest -E "^agc"`): same result as `main`; only `file_writer_binary` and `file_writer_text` fail, and they fail on `main` too on this machine (Ubuntu 26.04 coreutils). Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.
MarcZX10 commented 2026-10-16 15:34:25 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-16T15:34:25Z.


Thanks for the independent Linux run and for checking the documented case where guest_audio3d_port can no longer be reached from public inputs. I have noted that API caveat alongside the passing tests.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6218949174 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5968#issuecomment-6218949174). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-16T15:34:25Z. --- Thanks for the independent Linux run and for checking the documented case where `guest_audio3d_port` can no longer be reached from public inputs. I have noted that API caveat alongside the passing tests.
adriadam10 commented 2026-10-16 19:43:28 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-16T19:43:28Z.


Checked the build, guest_audio3d_port (passes; without the change the test doesn't link) and the port-level attributes against sceAudio3dPortSetAttribute. The list is inferred from the setter and shadPS4 reports object attributes instead, so I added the missing Unknown function info line in docs/dev/debt/libSceAudio3d.md as our own commit. Rebased on main, build and ctest green; merging.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6223354159 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5968#issuecomment-6223354159). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-16T19:43:28Z. --- Checked the build, `guest_audio3d_port` (passes; without the change the test doesn't link) and the port-level attributes against `sceAudio3dPortSetAttribute`. The list is inferred from the setter and shadPS4 reports object attributes instead, so I added the missing `Unknown function info` line in `docs/dev/debt/libSceAudio3d.md` as our own commit. Rebased on main, build and ctest green; merging.
MarcZX10 commented 2026-10-16 20:02:44 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-16T20:02:44Z.


Thanks for checking the port-level attributes against the setter and adding the missing debt note. The build and focused test results are clear, including the link failure without the change. I have no further changes to request.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6223662568 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5968#issuecomment-6223662568). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-16T20:02:44Z. --- Thanks for checking the port-level attributes against the setter and adding the missing debt note. The build and focused test results are clear, including the link failure without the change. I have no further changes to request.
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!5968
No description provided.