Commit Graph
156 Commits
Author SHA1 Message Date
Dean c2d14b444c Merge pull request #11918 from kyon-eth/feat/audioout2-1360-inventory
feat(libSceAudioOut): declare 11 additional exports
2026-10-28 22:30:28 +13:00
Dean a1f5ae4e8b Merge pull request #11244 from SeaSunPT/fix/audioout2-mastering-not-initialized
fix(libSceAudioOut): refuse sceAudioOut2Mastering calls before sceAudioOut2Initialize
2026-10-28 13:02:46 +13:00
Dean 091967e234 Merge pull request #11055 from JJenkx/fix/audioout2-device-queue-poll
fix(audioout2): poll device queues without the callback mutex
2026-10-28 13:02:30 +13:00
Dean 6c48f35a95 Merge pull request #8098 from LuisAguilarDev/fix/audioout2-silent-ports
fix(audioout2): keep each port's grain when ports share a buffer
2026-10-28 12:59:20 +13:00
Dean 7461dd1ed3 Merge pull request #10532 from LeandroLP23/fix/audioout-skip-open-without-output-devices
fix(libSceAudioOut): skip the default open only when Windows reports no default output endpoint
2026-10-28 02:31:48 +13:00
Kyon fadf15081d feat(libSceAudioOut): declare 11 additional exports 2026-10-27 12:31:40 +00:00
Dean 38cda53b52 Merge pull request #11160 from p3n1cillin/claude/audioout-padspk-volume
fix(libSceAudioOut): declare sceAudioOutSetPadSpkVolume as PSBox calls it
2026-10-27 14:05:56 +13:00
Dean fc7e583e6e Merge pull request #11035 from orezraey/fix/libsceaudioout-repeated-init-measured-ps5
fix(libSceAudioOut): fail a repeated sceAudioOut2Initialize and sceAudioOutInit as measured on a PS5
2026-10-27 09:16:48 +13:00
SeaSunPTandClaude Opus 5.5 d736ea814e Merge branch 'main' into fix/audioout2-mastering-not-initialized
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-26 15:34:06 +00:00
SeaSunPTandClaude Opus 5.5 4128be2f60 fix(libSceAudioOut): refuse sceAudioOut2Mastering calls before sceAudioOut2Initialize
The PS5 module read for #9027 returns 0x80268006 from sceAudioOut2MasteringInit,
sceAudioOut2MasteringInitEx, sceAudioOut2MasteringTerm,
sceAudioOut2MasteringGetState and sceAudioOut2MasteringSetParam before
sceAudioOut2Initialize. #9027 left the check out because AudioOut2
initialization was not tracked; AudioOut2IsInitialized_nid_no_patch now
tracks it, so each of these returns 0x80268006 first, before its own
mastering-state and argument checks, and changes no state. The debt entry
drops the closed gap.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-25 22:07:11 +00:00
Dean Galvin 91039afff1 Merge branch 'main' into feat/audioout-set-main-output 2026-10-26 09:57:37 +13:00
p3nicillinandClaude Opus 5.5 6d4247f45f fix(libSceAudioOut): declare sceAudioOutSetPadSpkVolume as PSBox calls it
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-25 20:12:50 +00:00
JJenkx 53da58ac91 test(audioout2): preserve the native test entry point with SDL headers 2026-10-25 11:07:39 -04:00
JJenkx c75ef9f48d fix(audioout2): publish queue changes when producer scopes exit 2026-10-25 10:52:42 -04:00
orezraeyandClaude Opus 5.5 9925a9e401 fix(libSceAudioOut): fail a repeated sceAudioOut2Initialize and sceAudioOutInit as measured on a PS5
On PS5 firmware 13.60 a second sceAudioOut2Initialize returns 0x80268004,
also after sceAudioOutInit, and a second sceAudioOutInit returns
0x8026000e. sceAudioOutInit after sceAudioOut2Initialize still returns 0.
sceAudioOut2InitializeEx and sceAudioOut2LoInit keep returning 0; their
repeats were not measured.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-25 11:36:01 -03:00
JJenkx fef6f77622 fix(audioout2): poll device queue levels without the callback mutex 2026-10-25 10:34:14 -04:00
LeandroLP23andClaude Opus 5.5 e63a51c93a fix(libSceAudioOut): confirm the missing WASAPI endpoint before skipping the open
SDL's WASAPI enumeration drops failures silently: EnumAudioEndpoints or
GetCount errors leave the list empty, and a device whose metadata lookup
fails is left out, so an empty list does not prove there is no default
endpoint. The skip now also requires IMMDeviceEnumerator's
GetDefaultAudioEndpoint(eRender, eConsole), the call SDL's default open
makes, to return ERROR_NOT_FOUND. The probe runs only when the wasapi list
is empty.

audio_out_default_open gains wasapi_zero_default (empty WASAPI list, the
probe finds an endpoint, the default is opened) and checks that the probe
runs only for an empty WASAPI list.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-25 10:50:38 +01:00
LeandroLP23andClaude Opus 5.5 41b8afb060 fix(libSceAudioOut): skip the default open only when WASAPI reports no endpoint
SDL documents that a default open can succeed when SDL_GetNumAudioDevices
returns zero, for instance ALSA whose default PCM works without device
hints. The shortcut now applies only to the wasapi driver, which
enumerates active render endpoints synchronously when the subsystem
starts; with none, its default open has no endpoint to use and fails after
SDL's 8 s retry.

audio_out_default_open runs AudioOut.cpp against a stubbed SDL in four
modes: zero devices on alsa with a working default, zero on wasapi, a
positive count and an unknown count.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-25 10:17:11 +01:00
LeandroLP23andClaude Opus 5.5 cb92e51d72 fix(libSceAudioOut): skip the SDL device open when no output device exists
With no audio endpoint, SDL's WASAPI backend retries the default device
for 8 s before it fails. Every port open paid that before falling back
to virtual pacing. Ask SDL for the output device count first and take
the virtual path at once when it is zero.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-25 10:11:15 +01:00
boykopovar 2a99f02f25 fix(sdk): reconcile declarations after main rebase 2026-10-24 23:17:50 +03:00
boykopovar fdf9ca7574 fix(sdk): reconcile public headers after rebase 2026-10-24 23:17:47 +03:00
boykopovar f38d29fd08 refactor(sdk): add canonical headers for remaining libraries 2026-10-24 23:17:42 +03:00
boykopovar 35cf8d56cd refactor(sdk): add canonical headers for core libraries 2026-10-24 23:17:37 +03:00
Dean 1c6e10f170 Merge pull request #8693 from JAB-dev/fix/audioout2-speaker-info-errors
fix(libSceAudioOut): report not-initialized, null-pointer and flag errors from sceAudioOut2GetSpeakerInfo
2026-10-25 07:32:15 +13:00
JAB-devandClaude Sonnet 5.5 4be45df841 test(libSceAudioOut): stop asserting a repeated AudioOut2 init and record the init gaps
`sceAudioOutInit` now initializes AudioOut2, so the extra `sceAudioOut2Initialize()` in the speaker-info test after a legacy init pinned a repeated direct-init result that no run on the console covered; the test keeps the legacy-init to speaker-info success check. The debt file records that a repeated `sceAudioOutInit` returns 0 here against `0x8026000e` on the firmware and that a repeated `sceAudioOut2Initialize` is unmeasured, describes the flag-1 selector as the unidentified per-process libkernel value with BunnyFl's `0x14FFFFF` boundary, and splits the speaker-info entry so no entry passes the length limit.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-10-24 18:32:14 +02:00
JAB-dev 032b4ff6da Merge remote-tracking branch 'origin/main' into HEAD 2026-10-24 18:01:59 +02:00
Adrià 87666fc5d6 Merge pull request #8525 from MarrasFederico/feat/audio-out-mastering
feat(libSceAudioOut): answer the legacy mastering calls without a mastering stage
2026-10-24 14:21:12 +02:00
Adrià FranchandClaude Sonnet 5.5 de28243d26 fix(libSceAudioOut): clear sceAudioOutGetSystemState reserved fields
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-10-23 20:31:12 +02:00
Benjamin Cortez b0b7198b7a feat(libSceAudioOut): implement sceAudioOutGetSystemState 2026-10-23 20:31:12 +02:00
Dean 19d0005a47 Merge pull request #9027 from hypermoist/fix/audioout2-mastering-state
fix(libSceAudioOut): track mastering initialization as the console does
2026-10-24 00:54:34 +13:00
Dean 98aef0f7fa Merge pull request #9023 from hypermoist/fix/audioout-info-calls
fix(libSceAudioOut): return what the firmware returns from three info calls
2026-10-24 00:54:12 +13:00
JAB-devandClaude Sonnet 5.5 a5c3bb0933 fix(libSceAudioOut): sceAudioOutInit initializes AudioOut2 as the firmware does
In PS5 firmware 3.20 and 4.03 sceAudioOutInit calls sceAudioOut2Initialize, which sets the flag that sceAudioOut2GetSpeakerInfo tests before anything else. A title that only calls sceAudioOutInit got 0x80268006 here. The flag moves next to sceAudioOutInit so the test targets that build only AudioOut.cpp still link.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-10-23 12:36:41 +02:00
JAB-devandClaude Sonnet 5.5 1c335b6ea9 Merge branch 'main' of https://github.com/boykopovar/AnyPS5 into fix/audioout2-speaker-info-errors
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-10-23 12:33:19 +02:00
hypermistandClaude Opus 5.5 1cee26eba7 Merge remote-tracking branch 'upstream/main' into fix/audioout2-mastering-state
Keep the shared Init/InitEx validation over the InitEx body from #9349.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01SNqSvnFwRBz3D76n476yw6
2026-10-23 19:12:29 +13:00
Federico Marras cf06f64c29 Merge remote-tracking branch 'upstream/main' into feat/audio-out-mastering
# Conflicts:
#	docs/dev/debt/libSceAudioOut.md
2026-10-23 07:11:02 +02:00
Dean 18b9b17664 Merge pull request #9838 from JAB-dev/fix/audioout2-system-debug-state-validation
fix(libSceAudioOut): validate the debug state id and size in sceAudioOut2SetSystemDebugState
2026-10-23 15:36:06 +13:00
Dean ccab14d394 Merge pull request #8915 from hypermoist/feat/audio3d-speaker-array
feat(audio3d): forward the speaker-array calls to AudioOut2
2026-10-23 14:13:57 +13:00
Dean 9f64d9203f Merge pull request #9351 from thuanquang/test/audio-out-buffer-size-overflow
test(libSceAudioOut): check that an audio port whose buffer size overflows throws
2026-10-23 13:04:47 +13:00
Dean bacd18e63a Merge pull request #9349 from MarcZX10/codex/audioout2-initex-console-flag31
feat(libSceAudioOut): support mastering InitEx flags
2026-10-23 12:57:51 +13:00
JAB-devandClaude Sonnet 5.5 7281c9b68b Merge branch 'main' of https://github.com/boykopovar/AnyPS5 into fix/audioout2-system-debug-state-validation
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-10-23 00:28:54 +02:00
Dean 5f83572bfb Merge pull request #9032 from hypermoist/fix/audioout2-lo-terminate
fix(libSceAudioOut): return 0 from sceAudioOut2LoTerminate and forward sceAudioOut2InitializeEx
2026-10-23 09:43:36 +13:00
JAB-devandClaude Sonnet 5.5 611db84ca5 fix(libSceAudioOut): validate the debug state id and size in sceAudioOut2SetSystemDebugState
sceAudioOut2SetSystemDebugState accepts only the loudness debug state (id 1, 8-byte param); other ids and sizes return the invalid param error and a null pointer returns the invalid pointer error. The one debug state the console also accepts, id 0x20 with a 4-byte param, throws.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-10-22 18:09:35 +02:00
Federico Marras c764bdc087 Merge remote-tracking branch 'upstream/main' into feat/audio-out-mastering
# Conflicts:
#	docs/dev/debt/libSceAudioOut.md
2026-10-22 07:01:43 +02:00
hypermist 7ef7653590 Merge remote-tracking branch 'upstream/main' into fix/audioout2-mastering-state
# Conflicts:
#	docs/dev/debt/libSceAudioOut.md
2026-10-22 14:20:02 +13:00
JAB-devandClaude Sonnet 5.5 43a76fcdb5 Merge branch 'main' of https://github.com/boykopovar/AnyPS5 into fix/audioout2-speaker-info-errors
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-10-22 00:02:33 +02:00
thuanquangandClaude ca8b3da6fb test(libSceAudioOut): check that an audio port whose buffer size overflows throws
Co-Authored-By: Claude <[email protected]>
2026-10-22 02:07:26 +07:00
MarcZX10 023139d12c feat(libSceAudioOut): support mastering InitEx flags 2026-10-21 19:05:18 +00:00
boykopovar b5d626bc21 fix(audioout): enforce native monitor buffer validation 2026-10-21 21:51:55 +03:00
boykopovar f7a7be1a27 fix(audioout2): restore optional attribute outputs and errors 2026-10-21 21:51:54 +03:00
boykopovar 62e4e204f1 fix(audioout): restore device id open argument slots 2026-10-21 21:50:50 +03:00