Paliverse / DualSenseX

Connect your DualSense Controller, use Adaptive Triggers, Emulate Xbox 360 or DualShock 4 through USB or Bluetooth on PC
1.23k stars 107 forks source link

[Feature Request]: Crossover for Audio Haptics #113

Open bitter-honeyy opened 2 years ago

bitter-honeyy commented 2 years ago

It would be nice to have a crossover setting to limit the range of frequencies fed to the vibration motors. Frequencies above 500 Hz are practically not felt anymore, and most likely harm the vibration motors. Thanks.

Paliverse commented 2 years ago

Unfortunately I’m limited with the audio library I use to send to the controller. I do hope someone that is pro with working with audio on pc using C# can let me know of a better way to use audio haptics or to contact me about this

BLesnau commented 2 years ago

@Paliverse I may have some ideas for working with audio and translating that to haptics that I could maybe experiment with and let you know. The part I'm not sure about is how to feed audio to the controller itself for haptic playback. I've looked at HID reports and didn't see a way to provide audio. Is it handled more like recognizing it as a speaker output rather than sending data to the HID outputs/inputs?

Paliverse commented 2 years ago

@BLesnau audio isn’t being sent through HID reports. Just simply playing it to the speaker in windows. But i use a wassapi audio library to capture the incoming audio from the default device and then just send it to the controller

BLesnau commented 2 years ago

@Paliverse Thank you for the pointers. If I ever make progress on it, I'll let you know.

Paliverse commented 2 years ago

Yeah please do, If you happen to use some pro audio library with minimal or no delays in loop backing the audio, I’d be happy to implement. Just make sure it’s C# and .NET compatible