https://bugs.winehq.org/show_bug.cgi?id=45260
Bug ID: 45260 Summary: No sound in-game in Watch Dogs Product: Wine-staging Version: 3.9 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: A.Fettouhi@gmail.com CC: erich.e.hoover@wine-staging.com, michael@fds-team.de, sebastian@fds-team.de Distribution: ---
Have gotten Watch Dogs 1 (under uplay) running under wine-staging 3.8 and 3.9 with dxvk (0.51 & 0.52) but the sound in-game is missing. There sound in the intro sequence with Ubisoft logo and in the menu but when you start the game, the sound stops working in cutscenes and in the game itself. I have tried to install xact and directx9 but no change. Also attempted to set to stereo because I read the game has tedency to force 5.1 and I only have a stereo setup. All my testing was done under Arch Linux 64 bit with a 64 bit wine PREFIX. Uplay was installed via winetricks. Using an i7-6600K cpu with a 1080 gtx nvidia card and the 396.24 driver. The game itself runs really well and smooth even with the graphics settings set to ultra.
https://bugs.winehq.org/show_bug.cgi?id=45260
Caio F caiot5@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |caiot5@gmail.com
--- Comment #1 from Caio F caiot5@gmail.com --- I have the same audio behavior here and I can confirm it is a regression with the wine-stagiing package, as the sound used to work normally with the older stable branches.
https://bugs.winehq.org/show_bug.cgi?id=45260
Robert Walker bob.mt.wya@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |bob.mt.wya@gmail.com
--- Comment #2 from Robert Walker bob.mt.wya@gmail.com --- (In reply to André Fettouhi from comment #0)
I'd recommend changing the title of the bug report to match other bugs for the Watch_Dogs game and the AppDB entry (i.e. adding in the underscore character). It may sound trivial - but searches of "Watch_Dogs" will miss your bug report!
I've linked this bug report to the game on AppDB... But really the submitter of a bug should be doing this themselves... See: https://appdb.winehq.org/objectManager.php?sClass=version&iId=31778
Just put the bug number in the "Submit a new bug link" box (in the "Known Bugs" section).
Linked bug reports tend to be acted on a lot faster...
https://bugs.winehq.org/show_bug.cgi?id=45260
--- Comment #3 from Robert Walker bob.mt.wya@gmail.com --- Please can one you guys, who actually owns this title, supply a Wine terminal log with:
export WINEDEBUG=+timestamp,+tid,+dsound
to kick-off the process. See: https://wiki.winehq.org/FAQ
https://bugs.winehq.org/show_bug.cgi?id=45260
André Fettouhi A.Fettouhi@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|No sound in-game in Watch |No sound in-game in |Dogs |Watch_Dogs
https://bugs.winehq.org/show_bug.cgi?id=45260
--- Comment #4 from André Fettouhi A.Fettouhi@gmail.com --- (In reply to Robert Walker from comment #2)
(In reply to André Fettouhi from comment #0)
I'd recommend changing the title of the bug report to match other bugs for the Watch_Dogs game and the AppDB entry (i.e. adding in the underscore character). It may sound trivial - but searches of "Watch_Dogs" will miss your bug report!
I've linked this bug report to the game on AppDB... But really the submitter of a bug should be doing this themselves... See: https://appdb.winehq.org/objectManager.php?sClass=version&iId=31778
Just put the bug number in the "Submit a new bug link" box (in the "Known Bugs" section).
Linked bug reports tend to be acted on a lot faster...
Done!
https://bugs.winehq.org/show_bug.cgi?id=45260
--- Comment #5 from Caio F caiot5@gmail.com --- Created attachment 61557 --> https://bugs.winehq.org/attachment.cgi?id=61557 WINEDEBUG of the application.
https://bugs.winehq.org/show_bug.cgi?id=45260
--- Comment #6 from Caio F caiot5@gmail.com --- (In reply to Robert Walker from comment #3)
Please can one you guys, who actually owns this title, supply a Wine terminal log with:
export WINEDEBUG=+timestamp,+tid,+dsound
to kick-off the process. See: https://wiki.winehq.org/FAQ
Attached the output as requested.
https://bugs.winehq.org/show_bug.cgi?id=45260
Anthony Jagers noonetinone@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |noonetinone@gmail.com
--- Comment #7 from Anthony Jagers noonetinone@gmail.com --- *** Bug 45742 has been marked as a duplicate of this bug. ***
https://bugs.winehq.org/show_bug.cgi?id=45260
Adam Bolte abolte@systemsaviour.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |abolte@systemsaviour.com
--- Comment #8 from Adam Bolte abolte@systemsaviour.com --- Created attachment 62737 --> https://bugs.winehq.org/attachment.cgi?id=62737 WINEDEBUG=+timestamp,+tid,+dsound wine FarCry4.exe, snippets from Wine 3.19
I've noticed what sounds like the same kind of behaviour from Far Cry 4. It's another Ubisoft game which came out the same year as Watch_Dogs. The audio works fine in the intro sections, but stops as soon as you get to the main menu and gameplay.
Like Watch_Dogs, people are saying you need to set your audio to stereo and various other tricks, even under Windows in some cases. There's an entire thread about it here: https://steamcommunity.com/app/298110/discussions/0/598198356169002715/
I've tried Wine 3.19, 3.19-staging, setting winecfg Audio to stereo, tried three different sound cards, tried setting xaudio2_7 to native, tried setting PulseAudio's daemon.conf to have
default-sample-rate = 48000 default-sample-channels = 2 default-channel-map = front-left,front-right
etc. Nothing I've tried has made any difference.
https://bugs.winehq.org/show_bug.cgi?id=45260
--- Comment #9 from Anthony Jagers noonetinone@gmail.com --- What worked for me was setting xaudio2_7 to 'native,builtin' Maybe try that after winetricks xact. _____________________________________________________________________
REGEDIT4
[HKEY_USERS\S-1-5-21-0-0-0-1000\Software\Wine\DllOverrides] "xaudio2_7"="native,builtin"
https://bugs.winehq.org/show_bug.cgi?id=45260
--- Comment #10 from Anthony Jagers noonetinone@gmail.com --- The problem reported by André & Adam has happened to me again with Far Cry 4. No audio in game except cut scenes. I tried to retrace my steps over the last few months. I installed xact. I overrode my dlls. I tried different wine versions. I even tried these new builds of FAudio.
The only thing that worked was manually copying my xaudio2.*.dlls(or the entire install from xact) from my copy of Windows 10 directly into SysWOW64 & System32 folders. That got audio working again. I think installing some new steam games borked my prefix. It looks like winetricks installs an incompatible version. Using dxsetup.exe from Microsoft quit saying new versions were already installed. So, a manual copy was my only option.
I copied these x3daudio*, xactengine*, xapofx* xaudio*.
https://bugs.winehq.org/show_bug.cgi?id=45260
--- Comment #11 from Adam Bolte abolte@systemsaviour.com --- (In reply to Anthony Jagers from comment #10)
The only thing that worked was manually copying my xaudio2.*.dlls(or the entire install from xact) from my copy of Windows 10 directly into SysWOW64 & System32 folders...
I copied these x3daudio*, xactengine*, xapofx* xaudio*.
Are you sure that's all? I have a Windows 10 installation mounted at /mnt/windows so I ran the following (from within the "drive_c" folder of my Far Cry 4 wineprefix):
$ find windows/syswow64 ( -iname 'x3daudio*' \ -o -iname 'xactengine*' \ -o -iname 'xapofx*' \ -o -iname 'xaudio*' ) \ -exec rm -f {} ; $ find /mnt/windows/Windows/SysWOW64 ( -iname 'x3daudio*' \ -o -iname 'xactengine*' \ -o -iname 'xapofx*' \ -o -iname 'xaudio*' ) \ -exec cp {} windows/syswow64/ ;
$ find windows/system32 ( -iname 'x3daudio*' \ -o -iname 'xactengine*' \ -o -iname 'xapofx*' \ -o -iname 'xaudio*' ) \ -exec rm -f {} ; $ find /mnt/windows/Windows/System32 ( -iname 'x3daudio*' \ -o -iname 'xactengine*' \ -o -iname 'xapofx*' \ -o -iname 'xaudio*' ) \ -exec cp {} windows/system32/ ;
That should make sure there are no duplicates since the file name case of the Windows installation is often different to what Wine provides.
I then ran winecfg and set the following DLL entries to native:
x3daudio* xactengine* xapofx* xaudio*
Fired up Uplay, launched Far Cry 4... no change.
I also tried unsetting the above ovverides, and still saw no change.
I did notice this in the console output: 014c:fixme:pulse:AudioSessionControl_RegisterAudioSessionNotification (0x11e9fa00)->(0x114969d0) - stub Cannot connect to server socket err = No such file or directory Cannot connect to server request channel jack server is not running or cannot be started JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for 4294967295, skipping unlock JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for 4294967295, skipping unlock
Not sure why it's trying to connect to Jack instead of Pulseaudio.
https://bugs.winehq.org/show_bug.cgi?id=45260
--- Comment #12 from Anthony Jagers noonetinone@gmail.com --- I'll clarify what I did. Installing these new FAudio-builds, places symbolic link in SysWOW64 within the wine prefix. It installs the files I mentioned in comment #10. Also it installs avcodec-58.dll, avutil-56.dll, FAudio.dll, libiconv-2.dll, liblzma-5.dll, libwinpthread-1.dll, SDL2.dll, swresample-3.dll, zlib1.dll. I deleted all of that.
Afterwards, I just en mass just copied every dll that exist in windows which does not within my wine prefix. That was over one gig. It worked so I kept it.
https://bugs.winehq.org/show_bug.cgi?id=45260
--- Comment #13 from Anthony Jagers noonetinone@gmail.com --- More info.
It appears and I don't know how this happened that my windows 10 install placed 32-bit xact dlls in C:\Windows/SysWOW64 and 64-bit versions in system32. This placement was duplicated within my wine prefix.
I get: a_jagers [ /mnt/windows/Windows/SysWOW64 ]$ file ./XAudio2_7.dll ./XAudio2_7.dll: PE32 executable (DLL) (GUI) Intel 80386, for MS Windows a_jagers [ /mnt/windows/Windows/System32 ]$ file ./XAudio2_7.dll ./XAudio2_7.dll: PE32+ executable (DLL) (GUI) x86-64, for MS Windows
________________________________________________________________________________
a_jagers [ /mnt/windows/Windows/System32 ]$ winedump ./XAudio2_7.dll Contents of ./XAudio2_7.dll: 518488 bytes
File Header Machine: 8664 (AMD64) Number of Sections: 6 TimeDateStamp: 4C0643CC (Wed Jun 2 07:43:08 2010) offset 288 PointerToSymbolTable: 00000000 NumberOfSymbols: 00000000 SizeOfOptionalHeader: 00F0 Characteristics: 2022 EXECUTABLE_IMAGE LARGE_ADDRESS_AWARE DLL
Optional Header (64bit) Magic 0x20B 523 linker version 10.00 size of code 0x76800 485376 size of initialized data 0xfe00 65024 size of uninitialized data 0x0 0 entrypoint RVA 0x70650 460368 base of code 0x1000 4096 image base 0x1180000000 section align 0x1000 4096 file align 0x200 512 required OS version 6.00 image version 6.00 subsystem version 5.02 Win32 Version 0x0 0 size of image 0x8b000 569344 size of headers 0x400 1024 checksum 0x81001 528385 Subsystem 0x2 (Windows GUI)
https://bugs.winehq.org/show_bug.cgi?id=45260
--- Comment #14 from Anthony Jagers noonetinone@gmail.com --- a_jagers [ /mnt/windows/Windows/SysWOW64 ]$ winedump ./XAudio2_7.dll Contents of ./XAudio2_7.dll: 527192 bytes
File Header Machine: 014C (i386) Number of Sections: 5 TimeDateStamp: 4C0641E5 (Wed Jun 2 07:35:01 2010) offset 264 PointerToSymbolTable: 00000000 NumberOfSymbols: 00000000 SizeOfOptionalHeader: 00E0 Characteristics: 2102 EXECUTABLE_IMAGE 32BIT_MACHINE DLL
Optional Header (32bit) Magic 0x10B 267 linker version 10.00 size of code 0x7ac00 502784 size of initialized data 0xf800 63488 size of uninitialized data 0x0 0 entrypoint RVA 0x31ce5 204005 base of code 0x1000 4096 base of data 0x7d000 512000 image base 0x10000000 268435456 section align 0x1000 4096 file align 0x200 512 required OS version 6.00 image version 6.00 subsystem version 5.01 Win32 Version 0x0 0 size of image 0x8e000 581632 size of headers 0x400 1024 checksum 0x845ec 542188 Subsystem 0x2 (Windows GUI)
https://bugs.winehq.org/show_bug.cgi?id=45260
--- Comment #15 from André Fettouhi A.Fettouhi@gmail.com --- I found a worksround for the miossing sound in-game in Watch Dogs. If set the watch_dogs.exe to Windows XP and leave the rest of the wine bottle as Windows 7. Then in-game sound starts to work.
https://bugs.winehq.org/show_bug.cgi?id=45260
Matteo Bruni matteo.mystral@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |-unknown Product|Wine-staging |Wine
--- Comment #16 from Matteo Bruni matteo.mystral@gmail.com --- (In reply to Anthony Jagers from comment #13)
It appears and I don't know how this happened that my windows 10 install placed 32-bit xact dlls in C:\Windows/SysWOW64 and 64-bit versions in system32. This placement was duplicated within my wine prefix.
Yeah, that is expected, if confusing: it turns out that on a 64-bit OS, 64-bit DLLs are stored under System32 and 32-bit DLLs are in SysWOW64. You can blame MS for that.
https://bugs.winehq.org/show_bug.cgi?id=45260
dominykas.petkevicius@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dominykas.petkevicius@gmail | |.com
--- Comment #17 from dominykas.petkevicius@gmail.com --- So, I can get audio by (there may be more steps than needed, not sure): 1. Setting Watch_Dogs to run on Win XP while uPlay is on default (Win 7) 2. winetricks xact 3. PULSE_LATENCY_MSEC=60
Hopefully this will help others. (Wine 4.1 w/ DXVK 0.96)
https://bugs.winehq.org/show_bug.cgi?id=45260
Vijay Kamuju infyquest@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |infyquest@gmail.com
--- Comment #18 from Vijay Kamuju infyquest@gmail.com --- Please test with latest wine git version?
https://bugs.winehq.org/show_bug.cgi?id=45260
Gijs Vermeulen gijsvrm@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |NOTOURBUG Status|UNCONFIRMED |RESOLVED
--- Comment #19 from Gijs Vermeulen gijsvrm@gmail.com --- This was fixed in FAudio. https://github.com/FNA-XNA/FAudio/commit/bf69b4000b85a1fc2e24b1a112be5beef00b3e79
Resolving NOTOURBUG.
https://bugs.winehq.org/show_bug.cgi?id=45260
Gijs Vermeulen gijsvrm@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |xaudio2
https://bugs.winehq.org/show_bug.cgi?id=45260
Gijs Vermeulen gijsvrm@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #20 from Gijs Vermeulen gijsvrm@gmail.com --- There have been multiple FAudio releases that include the fix for this bug, closing.