fix(build): require an SDL audio backend on Linux #3574

Merged
marshmll merged 1 commit from upstream-pr/3574 into main 2026-10-11 21:35:42 +00:00
marshmll commented 2026-10-11 13:35:28 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by marshmll on 2026-10-11T13:35:28Z.


What

On Linux the bundled SDL builds its PipeWire, PulseAudio and ALSA audio drivers only when their development files are found. Without them it keeps only the silent dummy and disk drivers and configuration still succeeds, so titles run with no sound and nothing reports why.

The Linux jobs in build.yml and release.yml install only libvulkan1 and mesa-vulkan-drivers, so the published v0.1.1 Linux libraries are built this way: strings on libSceAudioOut.prx, libSceAgcDriver.prx and libfmod.prx from prx-linux-v0.1.1.tar.gz finds only "SDL dummy audio driver" and "direct-to-disk audio", and no libpulse.so.0, libpipewire-0.3.so.0 or libasound.so.2.

  • CMakeLists.txt: on Linux, with the bundled SDL, configuration fails with the package names when SDL found none of PipeWire, PulseAudio or ALSA (HAVE_PIPEWIRE, HAVE_PULSEAUDIO, HAVE_ALSA in SDL's directory scope). SDL already defaults these drivers ON and loads the libraries at run time (*_SHARED), so the built libraries gain no link dependency. ANYPS5_USE_SYSTEM_DEPS=ON is unchanged.
  • build.yml and release.yml: the Linux jobs install libpipewire-0.3-dev, libpulse-dev and libasound2-dev.
  • docs/dev/BUILD.md: lists the packages for Debian/Ubuntu and Fedora.

Tested

Fedora 44, GCC 16.2.1, AMD RX 9060 XT (RADV, Mesa), PipeWire.

  • Dreaming Sarah (PPSA02929) on current main without the audio development packages: the generated SDL_config.h defines only the DISK, DUMMY and OSS audio drivers, and the title opens its AudioOut port (Audio out started (port#1,256[samples],48000[Hz],2[ch])) with no sound. After installing pipewire-devel, pulseaudio-libs-devel and alsa-lib-devel and reconfiguring, SDL defines PIPEWIRE, PULSEAUDIO and ALSA, the title shows up as a PulseAudio stream and is audible. Rendering was fine in both 90 s runs; no crash.
  • Configuration with -DSDL_PIPEWIRE=OFF -DSDL_PULSEAUDIO=OFF -DSDL_ALSA=OFF stops with the new error; a normal configuration passes.
  • ctest before the change: 838 tests on RADV, all passed. On lavapipe only agc_driver_emulated_color_compare (#3526) and agc_driver_image_plane_address_on_line_implicit_lod (#3418) fail, the same as on main. After the change, the audio, pad and VideoOut tests (25) pass on lavapipe.
  • python3 tools/check_conventions.py --base origin/main passes.
  • The Ubuntu package install in the workflows was not run locally.

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
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4819447326 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3574). Originally posted by [marshmll](https://github.com/marshmll) on 2026-10-11T13:35:28Z. --- ### What On Linux the bundled SDL builds its PipeWire, PulseAudio and ALSA audio drivers only when their development files are found. Without them it keeps only the silent `dummy` and `disk` drivers and configuration still succeeds, so titles run with no sound and nothing reports why. The Linux jobs in `build.yml` and `release.yml` install only `libvulkan1` and `mesa-vulkan-drivers`, so the published v0.1.1 Linux libraries are built this way: `strings` on `libSceAudioOut.prx`, `libSceAgcDriver.prx` and `libfmod.prx` from `prx-linux-v0.1.1.tar.gz` finds only "SDL dummy audio driver" and "direct-to-disk audio", and no `libpulse.so.0`, `libpipewire-0.3.so.0` or `libasound.so.2`. - `CMakeLists.txt`: on Linux, with the bundled SDL, configuration fails with the package names when SDL found none of PipeWire, PulseAudio or ALSA (`HAVE_PIPEWIRE`, `HAVE_PULSEAUDIO`, `HAVE_ALSA` in SDL's directory scope). SDL already defaults these drivers ON and loads the libraries at run time (`*_SHARED`), so the built libraries gain no link dependency. `ANYPS5_USE_SYSTEM_DEPS=ON` is unchanged. - `build.yml` and `release.yml`: the Linux jobs install `libpipewire-0.3-dev`, `libpulse-dev` and `libasound2-dev`. - `docs/dev/BUILD.md`: lists the packages for Debian/Ubuntu and Fedora. ### Tested Fedora 44, GCC 16.2.1, AMD RX 9060 XT (RADV, Mesa), PipeWire. - Dreaming Sarah (PPSA02929) on current `main` without the audio development packages: the generated `SDL_config.h` defines only the DISK, DUMMY and OSS audio drivers, and the title opens its AudioOut port (`Audio out started (port#1,256[samples],48000[Hz],2[ch])`) with no sound. After installing `pipewire-devel`, `pulseaudio-libs-devel` and `alsa-lib-devel` and reconfiguring, SDL defines PIPEWIRE, PULSEAUDIO and ALSA, the title shows up as a PulseAudio stream and is audible. Rendering was fine in both 90 s runs; no crash. - Configuration with `-DSDL_PIPEWIRE=OFF -DSDL_PULSEAUDIO=OFF -DSDL_ALSA=OFF` stops with the new error; a normal configuration passes. - `ctest` before the change: 838 tests on RADV, all passed. On lavapipe only `agc_driver_emulated_color_compare` (#3526) and `agc_driver_image_plane_address_on_line_implicit_lod` (#3418) fail, the same as on `main`. After the change, the audio, pad and VideoOut tests (25) pass on lavapipe. - `python3 tools/check_conventions.py --base origin/main` passes. - The Ubuntu package install in the workflows was not run locally. ### Checklist - [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
github-actions[bot] commented 2026-10-11 15:28:05 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-11T15:28:05Z.


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
#3664 .github/workflows/build.yml L218-219
.github/workflows/release.yml L65
docs/dev/BUILD.md L30
#3994 docs/dev/BUILD.md L29-30
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6110594010 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3574#issuecomment-6110594010). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-11T15:28:05Z. --- <!-- 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 | |---|---|---|---| | #3664 | `.github/workflows/build.yml` [L218-219](https://github.com/boykopovar/AnyPS5/blob/41f013f664f6ec36a8111f2c6f9772b76e562288/.github/workflows/build.yml#L218-L219)<br>`.github/workflows/release.yml` [L65](https://github.com/boykopovar/AnyPS5/blob/41f013f664f6ec36a8111f2c6f9772b76e562288/.github/workflows/release.yml#L65)<br>`docs/dev/BUILD.md` [L30](https://github.com/boykopovar/AnyPS5/blob/41f013f664f6ec36a8111f2c6f9772b76e562288/docs/dev/BUILD.md#L30) | | | | #3994 | `docs/dev/BUILD.md` [L29-30](https://github.com/boykopovar/AnyPS5/blob/41f013f664f6ec36a8111f2c6f9772b76e562288/docs/dev/BUILD.md#L29-L30) | | |
adriadam10 commented 2026-10-11 21:35:39 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-11T21:35:39Z.


Checked the configure check on Linux: with -DSDL_PIPEWIRE=OFF -DSDL_PULSEAUDIO=OFF -DSDL_ALSA=OFF it stops with the new message, and a normal configuration passes; full build and ctest on Linux pass (the only failures are window-opening video-out tests that time out here without this change too). The Ubuntu package install is covered by a manual full Build run before merging; merging once it is green.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6114036674 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3574#issuecomment-6114036674). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-11T21:35:39Z. --- Checked the configure check on Linux: with `-DSDL_PIPEWIRE=OFF -DSDL_PULSEAUDIO=OFF -DSDL_ALSA=OFF` it stops with the new message, and a normal configuration passes; full build and ctest on Linux pass (the only failures are window-opening video-out tests that time out here without this change too). The Ubuntu package install is covered by a manual full Build run before merging; merging once it is green.
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!3574
No description provided.