fix(audio): route legacy vibration PCM to controller output #6839
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/6839"
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 MarcZX10 on 2026-10-16T13:53:54Z.
What
Closes #6824. Legacy type-10 vibration ports previously paced accepted PCM as virtual output without publishing it to the controller. For mono and stereo S16/F32 buffers, route the submitted samples through the existing AudioOut2 pad-vibration mix and RMS-to-motor conversion, applying the legacy per-channel volume and mix level first. Both
sceAudioOutOutputandsceAudioOutOutputsuse the same path. Speaker ports and regular motor state remain separate.The controller bridge retains its existing 80 ms haptic hold behavior; this change does not claim a console-derived waveform or motor mapping. Legacy vibration formats with more than two channels are not routed by this change.
Tested
Linux x86_64, GCC 12.2, Release,
BUILD_TESTING=ON: builtaudio_out_vibration_testsand its production library dependencies. All five focused CTest cases passed (S16, F32, batched S16, batched F32 and the existing Pad bridge control). This host lacks AVX2 and other required PS5 CPU features, so the tests could only run after a temporary local-only bypass of the static host CPU guard; that bypass was restored and is not part of this PR.git diff --check, conventions and open-PR overlap checks passed. No physical controller or Windows validation.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-16T13:57:23Z.
Closing this PR after the new #6824 discussion clarified the intended legacy timing contract and disclosed an in-progress production prototype. My branch reused AudioOut2's 80 ms haptic hold, which does not match the source-owned frame intervals and per-port drain/close behavior now being specified. I don't want this parallel implementation to compete with that work.
Pull request closed