feat(libSceNgs2): share the native audio implementation #451
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/451"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by Wessamdevil on 2026-10-03T11:12:03Z.
What
Quake II PS5 (
PPSA09477,01.003.000) importslibSceNgs2without.native. That module currently exports onlyAPS5_DUMMY_FUN, so Windows startup fails resolvinggbMKV+8Enuobefore entering the game.Build both NGS2 module names from the existing implementation through a shared CMake function. This exposes the existing system, rack, voice, PCM and ATRAC9 behavior under the name the title imports. No audio algorithms or guest layouts change. Panning, geometry and other unsupported paths retain their explicit exceptions.
Run the existing PCM-rendering and ATRAC9 tests against each module independently. The new tests verify samples, mixing, pitch/repeats, callbacks, allocator lifetimes, waveform parsing and error behavior through
libSceNgs2; they do not just inspect exports.Tested
Windows 11 x86-64, MinGW-w64 GCC 15.2.0, CMake 3.31.10, Ninja, Release, SPIRV-Tools validation enabled.
libspackaging pass. Both NGS2 PRX files are NID-patched.ngs2_render,ngs2_atrac9,ngs2_core_render,ngs2_core_atrac9pass. The new render executable importslibSceNgs2.prx, independently of.native.agc_shader_memoryrejects a scalar-condition/vector-result SPIR-VOpSelect, andagc_driver_flipsegfaults in its invalid-submission cases.XhWHn6P5R7U(pthread_rwlock_trywrlock, covered by open #344), with Windows0xC0000139. No menu, rendering, audio playback or gameplay claim is made; panning remains unimplemented.The previous decision in #247 to leave the unsuffixed module empty was based on having no title importing it. This test supplies that missing case. Game binaries, assets and investigation files remain outside Git. The test preparation tooling from #450 was used locally, but this implementation has no source dependency on that PR.
Checklist
main; no other open PR implements the same functionsPull request closed