feat(audio): play the DualSense speaker and vibration ports on its USB sound card #180
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/180"
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 oneandonlydean on 2026-09-30T11:47:42Z.
What
A title can open AudioOut2 ports of type 0x3 and 0x6 next to its bed and object ports.
AudioOut2MixPortsfolded them into the TV mix like any other port. In PPSA21564 their grains show what they carry: type 0x6 (stereo) holds short bursts with 95% of their energy below 200 Hz, fired by menu moves and confirms, which are the DualSense's two voice-coil actuators; type 0x3 (mono) holds small UI effects at the same moments, which is the controller's speaker. So the haptics came out of the PC speakers as low thumps and the controller got nothing.A USB DualSense is also a 4-channel 48 kHz sound card: channels 1-2 feed the speaker and headset jack, channels 3-4 the left and right actuators.
AudioOut2PadMixholds the routing:AudioOut2RouteForPortsends 1- and 2-channel ports of type 0x3 to the speaker and of type 0x6 to the actuators; every other type and channel count stays in the main mix. A mono speaker port feeds both speaker channels, and the vibration port's left and right channels drive channels 3 and 4, at the port volumes. The pad mix is clamped to full scale (no master gain: each channel carries one port).The meaning of the two port types comes from PPSA21564's audio content, not from an SDK header. On Windows the DualSense's audio endpoint is not named after the controller, so it is not found there and nothing changes.
Tested
audio_out2_pad_mixcovers the routing table, the device name match, the speaker and vibration channel mapping with per-channel volumes, summing and clamping, the refusal of a port that does not play on the controller, and the quad and PulseAudio frame layouts. Main has no pad routing, so the test does not build there.ctest: 65/65 pass (64 plus the newaudio_out2_pad_mix).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