Skip to content
This repository has been archived by the owner on Jan 1, 2024. It is now read-only.

[Request] Using headset jack on DS4 v1 #2089

Closed
slodias opened this issue Apr 22, 2021 · 8 comments
Closed

[Request] Using headset jack on DS4 v1 #2089

slodias opened this issue Apr 22, 2021 · 8 comments

Comments

@slodias
Copy link

slodias commented Apr 22, 2021

Are we going to be use a headset on DS4 version one ? What is the problem? Is it impossible or tough? Do you mind If you explain to us? Thanks. You are doing great work.

@slodias slodias changed the title Using headset jack on DS4 v1 [Request] Using headset jack on DS4 v1 Apr 25, 2021
@Ryochan7
Copy link
Owner

I have mostly given up hope on that ever getting done. Too many other tasks to worry about and the experimental routine did not work 100% reliably. Haven't messed with that project in a while.

@Ryochan7
Copy link
Owner

Finally got a chance to experience real audio streaming from a PS4 last week. It is definitely higher quality audio than what is possible using the SBC approach.

@xillmera
Copy link

@Ryochan7
Hello, I’ve found this paper about this problem helpful. If u r need (engl)translate - I can make it. Text about reversingeneering of captued sound packages from DualShock 4 and description of information composition in it. It’s material, like I can see, directly for this problem.

@mirh
Copy link

mirh commented May 22, 2021

That was already discussed a bazillions times #1268
Btw there's no reason SBC has to be limited to low bitrates/quality (or not sure if DS4 couldn't also support mSBC)
https://habr.com/en/post/456476/

@Ryochan7
Copy link
Owner

Okay. This is getting closed now. That same link that has been posted countless times in a number of threads for years. You aren't helping. The following link is a much better resource and it is what I have used when testing this.

https://sensepost.com/blog/2020/dual-pod-shock-emotional-abuse-of-a-dualshock/

Btw there's no reason SBC has to be limited to low bitrates/quality (or not sure if DS4 couldn't also support mSBC)

With the SBC approach, you are pretty much stuck with a fixed audio frequency (32 kHz) or the controller will fail to play it properly and induce audio glitching. I cannot remember how much space is given in the output report for the audio packet but it is not a large amount of bytes. Higher quality audio would only be possible if you could somehow access the Wireless BT audio interface of the controller that is separate from the output report. The output report data was only ever meant to play short audio sounds AFAIK.

Sample project:
https://gitlab.com/ryochan7/ds4-audio-test-windows/-/tree/master/

Example SBC conversion command:
https://gitlab.com/ryochan7/dual-pod-shock/-/blob/ryochan-changes/example_sbc_conversion.txt

@mirh
Copy link

mirh commented May 23, 2021

I get that frequency is fixed.. But I find hard to believe bitrate would be too.
Moreover, there are all the mysteries with SBC mentioned in my link below and here
https://drive.google.com/file/d/1J40QF_gZfW7Lo35lc_pgpGi8MZEeWGVt/view

For instance.. you seem to use a bitpool of 25 in your example (contrarily to the 19 reported by Cristofaro). Couldn't it be at least doubled?
EDIT: also, see Pecacheu/dualshock@65e7615 throwing out DS4W code

@destroyerimo
Copy link

I get that frequency is fixed.. But I find hard to believe bitrate would be too.
Moreover, there are all the mysteries with SBC mentioned in my link below and here
https://drive.google.com/file/d/1J40QF_gZfW7Lo35lc_pgpGi8MZEeWGVt/view

For instance.. you seem to use a bitpool of 25 in your example (contrarily to the 19 reported by Cristofaro). Couldn't it be at least doubled?
EDIT: also, see Pecacheu/dualshock@65e7615 throwing out DS4W code

this could be it! maybe?
nice find @mirh I did some searching and found this
signal11/hidapi#378
and subsequently what he did is
signal11/hidapi#378 (comment)
perhaps he could contribute, hope this could be of help what do you think? @Ryochan7

@Ryochan7
Copy link
Owner

Ryochan7 commented Jun 7, 2021

Why do I bother to show the current progress? I have seen that project before and my sample project that I posted earlier is far ahead of that old code. Locking this issue now.

Repository owner locked as resolved and limited conversation to collaborators Jun 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants