feat(libSceSystemService): report that no background music is playing #9089

Merged
YossiYad merged 4 commits from upstream-pr/9089 into main 2026-10-22 06:09:17 +00:00
YossiYad commented 2026-10-21 12:03:40 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by YossiYad on 2026-10-21T12:03:40Z.


What

sceSystemServiceIsBgmPlaying and sceShellCoreUtilIsBgmPlaying threw. Both now return 0. In shadPS4's systemservice.cpp both return whether its libSceMusicPlayerService is playing (1 or 0, no arguments). AnyPS5 has no libSceMusicPlayerService, so no background music can be playing and the answer is always 0.

Not measured on a PS5; the debt entry says so.

Tested

Linux (Fedora 44, GCC, Ninja, -DBUILD_TESTING=ON), based on main 47fa6eecf8:

  • guest_system_service (core/libs/tests/GuestSystemService.cpp) expects 0 from both calls, after the existing music player disable and re-enable. It aborts on main, and fails when either call returns 1.
  • Full ctest: 1790 of 1798 pass. The 8 failures fail the same way on main on this machine and do not link libSceSystemService: application_heap_scripting, application_heap_lazy, agc_driver_guest_memory_lifetime, agc_driver_image_array_window_past_layer_limit, agc_driver_tessellation and the three net_dontwait_blocking_* cases.
  • tools/progress.py --compare: libraries +0.02%, 2 functions implemented, none lost.
  • tools/check_conventions.py --base upstream/main passes. tools/pr_overlap.py lists #8651, #8354, #7201 and #6044 as editing the same files; none of them implements these two.

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 under Silent stubs in their library's technical debt file
  • 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
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4951223391 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9089). Originally posted by [YossiYad](https://github.com/YossiYad) on 2026-10-21T12:03:40Z. --- ### What `sceSystemServiceIsBgmPlaying` and `sceShellCoreUtilIsBgmPlaying` threw. Both now return 0. In [shadPS4's systemservice.cpp](https://github.com/shadps4-emu/shadPS4/blob/a808e76/src/core/libraries/system/systemservice.cpp) both return whether its libSceMusicPlayerService is playing (1 or 0, no arguments). AnyPS5 has no libSceMusicPlayerService, so no background music can be playing and the answer is always 0. Not measured on a PS5; the debt entry says so. ### Tested Linux (Fedora 44, GCC, Ninja, `-DBUILD_TESTING=ON`), based on `main` `47fa6eecf8`: - `guest_system_service` (`core/libs/tests/GuestSystemService.cpp`) expects 0 from both calls, after the existing music player disable and re-enable. It aborts on `main`, and fails when either call returns 1. - Full `ctest`: 1790 of 1798 pass. The 8 failures fail the same way on `main` on this machine and do not link libSceSystemService: `application_heap_scripting`, `application_heap_lazy`, `agc_driver_guest_memory_lifetime`, `agc_driver_image_array_window_past_layer_limit`, `agc_driver_tessellation` and the three `net_dontwait_blocking_*` cases. - `tools/progress.py --compare`: libraries +0.02%, 2 functions implemented, none lost. - `tools/check_conventions.py --base upstream/main` passes. `tools/pr_overlap.py` lists #8651, #8354, #7201 and #6044 as editing the same files; none of them implements these two. ### 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 under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [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] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
github-actions[bot] commented 2026-10-21 12:04:32 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-21T12:04:32Z.


Progress report (4a17c71 → f0d0bca)

📈 System libraries: 42.01% (+0.02%, +2 implemented functions)

✅ 2 implemented
Library Name
libSceSystemService sceShellCoreUtilIsBgmPlaying
libSceSystemService sceSystemServiceIsBgmPlaying
⚪ 2 behaviourally empty (constant return or throw)
Library Name
libSceSystemService sceShellCoreUtilIsBgmPlaying
libSceSystemService sceSystemServiceIsBgmPlaying
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6315449774 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9089#issuecomment-6315449774). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-21T12:04:32Z. --- <!-- progress-report --> ### Progress report (4a17c71 → f0d0bca) 📈 **System libraries**: 42.01% (+0.02%, +2 implemented functions) <details> <summary>✅ 2 implemented</summary> | Library | Name | | - | - | | libSceSystemService | `sceShellCoreUtilIsBgmPlaying` | | libSceSystemService | `sceSystemServiceIsBgmPlaying` | </details> <details> <summary>⚪ 2 behaviourally empty (constant return or throw)</summary> | Library | Name | | - | - | | libSceSystemService | `sceShellCoreUtilIsBgmPlaying` | | libSceSystemService | `sceSystemServiceIsBgmPlaying` | </details>
github-actions[bot] commented 2026-10-21 12:20:04 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-21T12:20:04Z.


Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.

Pull request Conflicting files (lines on main) Same exports Same new files
PR 9586 core/libs/prx/libSceSystemService/PendingExports.cpp L1244-1263

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/GuestSystemService.cpp
PR 7201 core/libs/prx/libSceSystemService/Export.cpp
PR 8651 core/libs/prx/libSceSystemService/Export.cpp
core/libs/prx/libSceSystemService/PendingExports.cpp
core/libs/tests/GuestSystemService.cpp
docs/dev/debt/libSceSystemService.md
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6315744350 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9089#issuecomment-6315744350). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-21T12:20:04Z. --- <!-- pr-overlap --> Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in **Depends on**. | Pull request | Conflicting files (lines on `main`) | Same exports | Same new files | |---|---|---|---| | [PR 9586](https://www.github.com/boykopovar/AnyPS5/pull/9586) | `core/libs/prx/libSceSystemService/PendingExports.cpp` [L1244-1263](https://github.com/boykopovar/AnyPS5/blob/4a17c71757644170c6a0acfcc67fb17f81cff93f/core/libs/prx/libSceSystemService/PendingExports.cpp#L1244-L1263) | | | 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/GuestSystemService.cpp` | | [PR 7201](https://www.github.com/boykopovar/AnyPS5/pull/7201) | `core/libs/prx/libSceSystemService/Export.cpp` | | [PR 8651](https://www.github.com/boykopovar/AnyPS5/pull/8651) | `core/libs/prx/libSceSystemService/Export.cpp`<br>`core/libs/prx/libSceSystemService/PendingExports.cpp`<br>`core/libs/tests/GuestSystemService.cpp`<br>`docs/dev/debt/libSceSystemService.md` |
xXPBSXx commented 2026-10-21 16:14:40 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-21T16:14:40Z.


Independent Windows run of this PR (data only).

Environment: Windows 10 Pro 10.0.19045, Ryzen 7 5800X3D, WinLibs GCC 15.2.0 r7 (MinGW-w64 UCRT), Release, BUILD_TESTING=ON. Merge-tree of the PR head against main is clean. I built only guest_system_service_tests; ctest -N -R guest_system_service lists exactly one test.

PR head tested: 9f3cf7366e5d0c1f4262193d2de8f6990b06ea63.

Results (3 runs each):

  • PR head: guest_system_service passes 3/3.
  • Baseline: I kept the PR's test and replaced only these production files: core/libs/prx/libSceSystemService/Export.cpp, core/libs/prx/libSceSystemService/PendingExports.cpp with the version from the PR's merge base (47fa6eecf8), then rebuilt. The test fails 3/3 (exit 0xc0000409). I restored the PR's files afterwards.

GPU: the run output has no Selected GPU line; no GPU claim is made.

Not run: other platforms, the other tests in the same family, the full repository CTest, and any title or console run.

AI-assisted (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6320723335 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9089#issuecomment-6320723335). Originally posted by [xXPBSXx](https://github.com/xXPBSXx) on 2026-10-21T16:14:40Z. --- Independent Windows run of this PR (data only). **Environment:** Windows 10 Pro 10.0.19045, Ryzen 7 5800X3D, WinLibs GCC 15.2.0 r7 (MinGW-w64 UCRT), Release, BUILD_TESTING=ON. Merge-tree of the PR head against `main` is clean. I built only `guest_system_service_tests`; `ctest -N -R guest_system_service` lists exactly one test. **PR head tested:** `9f3cf7366e5d0c1f4262193d2de8f6990b06ea63`. **Results (3 runs each):** - PR head: `guest_system_service` passes 3/3. - Baseline: I kept the PR's test and replaced only these production files: `core/libs/prx/libSceSystemService/Export.cpp`, `core/libs/prx/libSceSystemService/PendingExports.cpp` with the version from the PR's merge base (`47fa6eecf8`), then rebuilt. The test fails 3/3 (exit 0xc0000409). I restored the PR's files afterwards. **GPU:** the run output has no `Selected GPU` line; no GPU claim is made. **Not run:** other platforms, the other tests in the same family, the full repository CTest, and any title or console run. AI-assisted (Claude Code).
YossiYad commented 2026-10-21 19:43:27 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by YossiYad on 2026-10-21T19:43:27Z.


Thanks @xXPBSXx for the Windows run, and for the baseline with the library code reverted that shows the test fails without the change.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6324962940 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9089#issuecomment-6324962940). Originally posted by [YossiYad](https://github.com/YossiYad) on 2026-10-21T19:43:27Z. --- Thanks @xXPBSXx for the Windows run, and for the baseline with the library code reverted that shows the test fails without the change.
YossiYad commented 2026-10-22 05:34:52 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by YossiYad on 2026-10-22T05:34:52Z.


Rebased onto main da54c652e after #9137 (head f0d0bcafb). The conflicts were main's new declarations next to the two removed stubs, and the rewritten pending-exports entry in the debt file, which I took as main has it. guest_system_service passes 3 of 3.

@oneandonlydean @adriadam10 ready from my side: CI is green, and xXPBSXx's Windows run shows the test failing with main's library code.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6333572616 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9089#issuecomment-6333572616). Originally posted by [YossiYad](https://github.com/YossiYad) on 2026-10-22T05:34:52Z. --- Rebased onto `main` `da54c652e` after #9137 (head `f0d0bcafb`). The conflicts were `main`'s new declarations next to the two removed stubs, and the rewritten pending-exports entry in the debt file, which I took as `main` has it. `guest_system_service` passes 3 of 3. @oneandonlydean @adriadam10 ready from my side: CI is green, and xXPBSXx's Windows run shows the test failing with `main`'s library code.
oneandonlydean commented 2026-10-22 05:48:52 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-22T05:48:52Z.


@YossiYad thanks, it's in my review queue now. I'll come back here with the result.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6333759905 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9089#issuecomment-6333759905). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-22T05:48:52Z. --- @YossiYad thanks, it's in my review queue now. I'll come back here with the result.
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!9089
No description provided.