-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Information about playing audio on DS4 #123
Comments
And small addition |
Hi,
Am I doing anything wrong? |
This script only for Linux. And only for information about packet. For Windows need rewrite this script |
Wow, amazing. choppy as hell but it works! Huge thanks on that 👍 |
I can not find SBC codec may suggest where to find it? |
Где вы пытаетесь его найти? Вы хотите найти исходный код? Или плагин для gstreamer? |
a1ien Really good JOB dude!!!! |
SiTWulf why dead? I use. :) |
Nice work a1ien. We can also play mp3's and adjust volume.
Some things I noticed when plugging headphones in. Only the left headphone speaker gives output and main controller speaker still gives out sound. Is there a way to mute main speaker and only give output to headphones? |
Yes, you can read the discussion in this thread. It's linux driver. |
Если я правильно все понял получается - Если переписать скрипт под Win, добавить библиотеку SBS кодека и вставить это все в DS4Windows то Джек на геймпаде будет (вероятно) работать. Правильно? (Я абсолютно в этом не смыслю но за этим наблюдаю) |
Да, все правильно. Но только нужно еще написать код по захвату звука в windows. Либо собрать sbc plugin для gstreamer. |
Воу, потрясающе, удачи вам |
I am currently trying to get this working under windows, but running into several issues, especially with gst-launch. Is it possible for someone to provide a binary file of the output gst-launch delivers? |
I have some research to be able playing audio on DS4.
Audio data send by opcode 0x14, 0x15, 0x17, 0x19.
And code by SBC audio codec.
I used this python script to wrap the audio data
play.py
This script was written to run on Linux, he takes the SBC audio data and send it to DS4
You can use gstreamer to prepare audio data.
gst-launch-1.0 -q audiotestsrc ! sbcenc ! 'audio/x-sbc,channels=2,rate=32000,channel-mode=dual,blocks=16,subbands=8,bitpool=25' ! queue ! fdsink | ./play.py
But there is a small problem, periodically occur stuttering.
But it may be caused by improper operation with HID device. Perhaps under Windows
such problems will not
I hope this helps to add audio support.
The text was updated successfully, but these errors were encountered: