feat(audio): implement AJM split decode, resample, control and AudioOut2 mastering #2495
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2495"
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 tarfouss3 on 2026-10-09T23:12:07Z.
What
Implements 7 exports that called NotImplemented: sceAjmBatchJobDecodeSplit, sceAjmBatchJobSetResampleParametersEx, sceAjmStrError, sceAjmBatchJobControl, sceAudioOut2MasteringInit, sceAudioOut2MasteringSetParam, sceAudioOut2Set3DLatency.
The source of each function's signature and behaviour is recorded in docs/dev/TechnicalDebt.md; none is confirmed on a title, and inputs whose console behaviour is not established throw.
Left as stubs, as no reference establishes their signature or behaviour: sceAjmBatchJobEncode, sceAjmDecWVorbisCreateHeaderPacket, sceAjmDecWVorbisCreateSetupPacket, sceAudioOut2GetSpeakerArrayCoefficients, sceAudioOut2MasteringGetState, sceAudioOut2SetSystemDebugState, sceAudioOut2UserGetSupportedAttributes, sceNgs2GeomApply, sceNgs2GeomCalcListener, sceNgs2GeomResetListenerParam, sceNgs2GeomResetSourceParam, sceNgs2PanGetVolumeMatrix, sceNgs2PanInit, sceTextToSpeech2GetSystemStatus, sceTextToSpeech2Cancel, sceTextToSpeech2Close, sceTextToSpeech2GetSpeechStatus, sceTextToSpeech2Open, sceTextToSpeech2Speak, sceTextToSpeech2Terminate.
Tested
Linux x86-64 (Ubuntu 24.04, GCC 13.3, Release,
BUILD_TESTING=ON), this branch alone on top ofmain(5bc7886a): full build andlibs, then the wholectestsuite with Vulkan on lavapipe: 520 of 522 passed. The two failures are environmental and also fail without this change:agc_driver_vopc_compare(lavapipe result) andguest_sce_net(the test machine has no IPv6, so the existingCheckUnspecifiedIpv6aborts). Tests added or extended for this change:audio_out2_latency,audio_out2_pad_mix,audio_out2_port_layouts,audio_out2_timing,audio_out_last_output_time,audio_out_mix_level_pad_spk,guest_ajm,guest_text_to_speech2,ngs2_atrac9,ngs2_core_render,ngs2_custom,ngs2_filter,ngs2_parse,ngs2_render,ngs2_stream,ngs2_userfx.tools/check_conventions.pypasses. Not tested with a title.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-09T23:14:51Z.
Review: CHANGES_REQUESTED
Checked: build + ctest on the touched libraries (guest_ajm passes, and fails without the change), error codes against fpPS4, behaviour against KytyPS5/prosper.
Ajm.cpp:1310-1318sceAjmStrErrorreturns the SDK macro names (SCE_AJM_ERROR_*). The TechnicalDebt line says the console's text is unknown, so this is a guess that returns a plausible string. prosper (hle_audio.cpp,ajm_str_error) notes the real library carries per-code message strings, and KytyPS5 returns a constant"AJM". Either leave it as a stub until the real text is known, or return something that is not presented as the console's answer.AudioOut2Mastering.cpp:9,29andAudioOut2System.cpp:18only swapNotImplemented_nid_no_patchforstd::runtime_error; behaviour is identical and nothing is implemented. They are also a different library, so please drop them (one topic per PR).guest_ajmis touched. Please update What/Tested to match the diff.docs/dev/TechnicalDebt.mdwill conflict with #2052 in the same section; rebase after whichever lands first.The
DecodeSplit,SetResampleParametersExand controlRESAMPLEparts look fine and are well covered by the test.Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-09T23:20:11Z.
Thank you for your interest in the project! We are sorry, but we cannot accept more PRs while we work through the existing backlog. This PR has been automatically closed and labeled "intake paused". This is not a judgment of the quality of your changes.
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-09T23:41:33Z.
Progress report (
5cb747c→768da28)📈 System libraries: 85.91% (+0.23%, +7 implemented functions)
✅ 7 implemented
sceAjmBatchJobControlsceAjmBatchJobDecodeSplitsceAjmBatchJobSetResampleParametersExsceAjmStrErrorsceAudioOut2MasteringInitsceAudioOut2MasteringSetParamsceAudioOut2Set3DLatencyPull request closed