Frogging-Family / wine-tkg-git

The wine-tkg build systems, to create custom Wine and Proton builds
893 stars 163 forks source link

[Wine TKG] Final Fantasy X remaster sound problem #713

Open Tikilou opened 2 years ago

Tikilou commented 2 years ago

Hi, with wine-tkg, i do not have have memory map failed and crash anymore, game is working very flawless, but the sound is horribly laggy like a lag with high ping. i'ts happening only with wine-tkg, never with official wine release, wine-GE, etc... And music on launcher doesn't have any problem.

I have uploaded a video about this problem (it's absolutly not a framerate problem) : https://www.youtube.com/watch?v=MRPN_pERZFY

Only logs i have is this :

02d8:fixme:avrt:AvSetMmThreadCharacteristicsW (L"Audio",419CFEC0): stub 02e8:fixme:avrt:AvSetMmThreadCharacteristicsW (L"Audio",411AFEC0): stub

Tk-Glitch commented 2 years ago

If you're using the mfplat restoration hotfix, try without it. It touches audio handling in some ways that may not please FFX. If you aren't, please give more detail on the .cfg used and version of wine/staging used.

Tikilou commented 2 years ago

Thanks for your answer ! I'm on Manjaro Linux, with Linux Kernel 5.16.12-zen1-1-zen-g14, and i'm using packages compiled by chaotic repository :

wine-tkg-fsync-git : https://archlinux.pkgs.org/rolling/chaotic-aur-x86_64/wine-tkg-fsync-git-7.3.r237.g18230d23c59-327-x86_64.pkg.tar.zst.html

or

wine-tkg-staging-fsync-git : https://archlinux.pkgs.org/rolling/chaotic-aur-x86_64/wine-tkg-staging-fsync-git-7.3.r5.ga79a08a6-327-x86_64.pkg.tar.zst.html

CFG and used patches for both, seems provided here : https://github.com/Tk-Glitch/PKGBUILDS/tree/master/wine-tkg-git

Tikilou commented 2 years ago

If you're using the mfplat restoration hotfix, try without it. It touches audio handling in some ways that may not please FFX. If you aren't, please give more detail on the .cfg used and version of wine/staging used.

I've finally recompiled myself without mpflat, there is the same, sound is still buggy. I've tried with or without faudio too.

I'm using your default cfg of git repository with latest git clone revision. :) The package generated : wine-tkg-staging-fsync-git-7.4.r0.ge5ddda02-327-x86_64.pkg.tar.zst

Tk-Glitch commented 2 years ago

Thank you very much! I'll try to repro the issue on my end. Hopefully it'll just be an issue with one of our patchsets.

Tk-Glitch commented 2 years ago

I was able to track it down to Staging's winepulse-PulseAudio_Support patchset. Disabling it results in clear sound. We actually have an option for that in the .cfg, which is disabled by default (_staging_pulse_disable="true").

Tk-Glitch commented 2 years ago

Also, funnily enough, I was able to reproduce the garbled sound issue on Proton 7.0 experimental as well.

Tikilou commented 2 years ago

Thanks for your research, i hope it will be fixed in the staging pulseaudio support. But why it's the same in proton 7.0 ? It's not using staging pulseaudio right ?

Tk-Glitch commented 2 years ago

Yeah that's definitely weird. It's possible a tainted prefix might have the issue no matter which wine used, or that Proton stable contains some bits of similar logic leading to the problem. I'll try to understand where it breaks in the staging patch, that should help figuring it out.