mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-22 16:43:05 -05:00
Implement sceNgs2GeomApply, which was previously an unimplemented throwing stub and was blocking Dead Cells (PPSA15552). The implementation validates null handles/output addresses and writes a minimal Ngs2GeomAttribute: pitch_ratio 1.0, source position, source volume/level maxima, and diagonal channel levels for the source's channel count. It does not implement source attenuation, distance rolloff, panning or Doppler. The export lives in Geom.cpp's internal Ngs2GeomApply and is exposed through the existing default-visibility wrapper in Voice.cpp. Unimplemented.cpp no longer defines the stub. A passing test was added to Ngs2Geom.cpp. Unblocks: PPSA15552 #<Game bring-up discussion number> Depends on: none AI assistance: yes
29 lines
647 B
C++
29 lines
647 B
C++
#include <cstddef>
|
|
#include <cstdint>
|
|
|
|
#include "prx/libc/include/General.hpp"
|
|
#include "prx/libSceNgs2.native/include/Ngs2Types.hpp"
|
|
|
|
#pragma GCC visibility push(default)
|
|
|
|
extern "C" {
|
|
|
|
int APS5_VABI sceNgs2ReportRegisterHandler(uint32_t report_type, void* handler, uintptr_t user_data, Ngs2Handle* out_handle) {
|
|
(void)report_type;
|
|
(void)handler;
|
|
(void)user_data;
|
|
(void)out_handle;
|
|
NotImplemented_nid_no_patch(__func__);
|
|
return 0;
|
|
}
|
|
|
|
int APS5_VABI sceNgs2ReportUnregisterHandler(Ngs2Handle report_handle) {
|
|
(void)report_handle;
|
|
NotImplemented_nid_no_patch(__func__);
|
|
return 0;
|
|
}
|
|
|
|
}
|
|
|
|
#pragma GCC visibility pop
|