fix(audioout): drop vibration ports when no pad audio device is open #2032
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2032"
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 Aryansh1520 on 2026-10-09T05:31:43Z.
What
Without a DualSense audio device,
AudioOut2MixPortsmixed every port into the main output, includingPAD_VIBRATIONports. Their waveforms drive the controller's haptic actuators on the console and are never heard through the speakers. Mixed into the main output, they made PPSA28997's (God of War Sons of Sparta) combat about 20 dB louder than its dialogue. When no pad audio device is open, vibration ports are now left out; pad speaker ports still go to the main output as before. With a pad audio device, routing is unchanged.Tested
audio_out2_port_layoutscovers the no-pad path (TestPadPortsWithoutPadDevice): vibration ports are left out of the main mix while pad speaker audio still reaches it. It fails without the fix; all sixaudio_out*tests pass with it.tools/check_conventions.py --base origin/mainpasses.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)Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-09T05:37:26Z.
The routing change matches the reported behavior, but the PR adds no regression test. The existing
AudioOut2PadMixtests cover vibration routing only when a pad output exists; they do not checkAudioOut2MixPortswithpadOut == nullptr, where the new drop decision lives. Could you add a focused test proving vibration data is omitted from the main mix while pad-speaker audio still reaches it? This looks practical with the existing AudioOut2 test setup. I’ll hold approval until that path is covered and CI runs.Imported from boykopovar/AnyPS5. Originally posted by Aryansh1520 on 2026-10-09T05:52:09Z.
Added
TestPadPortsWithoutPadDevicetoAudioOut2PortLayouts.cpp. The test uses SDL's disk driver, so no pad audio device is open andAudioOut2MixPortsruns withpadOut == nullptr. It pushes a stereo vibration port (type 0x6, constant 0.75) together with a mono pad speaker port (type 0x3) in one context. It checks that the main mix is exactly the folded speaker data, and that a vibration port pushed on its own leaves the main mix silent.Without the fix in
AudioOut2Port.cpp,audio_out2_port_layoutsfails; with it, all sixaudio_out*tests pass (Linux, GCC).Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-09T05:54:57Z.
Review: COMMENTED
Thanks for adding the no-pad regression case. I built exact head
873dd864on Linux with GCC 12;audio_out2_port_layoutspassed 1/1 in 2.32 s, andcheck_conventions.py --base upstream/mainpassed. GitHub currently reports no checks on this head. Please get the required platform jobs running (or have a maintainer approve any held workflow) before merge; I will hold approval until the checks are visible.Imported from boykopovar/AnyPS5. Originally posted by Aryansh1520 on 2026-10-09T10:36:59Z.
CI has now run on 873dd864: linux, windows, conventions, changes and report all pass (relinker skipped).
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-09T20:14:56Z.
Conflicts with main in
core/libs/prx/libSceAudioOut/tests/AudioOut2PortLayouts.cpp(b7b281678b); please rebase.Imported from boykopovar/AnyPS5. Originally posted by Aryansh1520 on 2026-10-10T07:17:27Z.
Rebased onto main (
f9cd694c) and resolved the conflict inAudioOut2PortLayouts.cpp: main'sTestMeasuredMainPortFormatsand this PR'sTestPadPortsWithoutPadDevicenow both run. All sixaudio_out*tests and conventions pass locally (Linux, GCC).