https://bugs.winehq.org/show_bug.cgi?id=39402
Bug ID: 39402 Summary: Lost Planet 2 Benchmark crashes at launch due to missing audio format conversion (IXAudio2Impl_CreateSourceVoice) Product: Wine Version: 1.7.52 Hardware: x86-64 URL: http://www.geforce.com/games-applications/pc-games/los t-planet-2 OS: Linux Status: NEW Keywords: download Severity: normal Priority: P2 Component: xaudio2 Assignee: wine-bugs@winehq.org Reporter: andrey.goosev@gmail.com CC: aeikum@codeweavers.com Distribution: ---
Created attachment 52514 --> https://bugs.winehq.org/attachment.cgi?id=52514 log
warn:xaudio2:IXAudio2Impl_CreateSourceVoice OpenAL can't convert this format!
wine-1.7.52-134-g20ff335
https://bugs.winehq.org/show_bug.cgi?id=39402
--- Comment #1 from Andrew Eikum aeikum@codeweavers.com --- Created attachment 52520 --> https://bugs.winehq.org/attachment.cgi?id=52520 xaudio2: Use ffmpeg to convert non-PCM formats
This patch will use FFmpeg to convert compressed audio formats into PCM and should fix this problem.
https://bugs.winehq.org/show_bug.cgi?id=39402
xpue r9ku1q@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |r9ku1q@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=39402
Andrew Eikum aeikum@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #52520|0 |1 is obsolete| |
--- Comment #2 from Andrew Eikum aeikum@codeweavers.com --- Created attachment 53463 --> https://bugs.winehq.org/attachment.cgi?id=53463 xaudio2: Use ffmpeg to convert non-PCM formats
Updated version of the patch for current Wine.
https://bugs.winehq.org/show_bug.cgi?id=39402
Andrew Eikum aeikum@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #53463|0 |1 is obsolete| |
--- Comment #3 from Andrew Eikum aeikum@codeweavers.com --- Created attachment 53617 --> https://bugs.winehq.org/attachment.cgi?id=53617 xaudio2: Use ffmpeg to convert non-PCM formats
Another patch rebase.
https://bugs.winehq.org/show_bug.cgi?id=39402
Béla Gyebrószki gyebro69@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |gyebro69@gmail.com
--- Comment #4 from Béla Gyebrószki gyebro69@gmail.com --- *** Bug 40964 has been marked as a duplicate of this bug. ***
https://bugs.winehq.org/show_bug.cgi?id=39402
Andrew Eikum aeikum@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #53617|0 |1 is obsolete| |
--- Comment #5 from Andrew Eikum aeikum@codeweavers.com --- Created attachment 55150 --> https://bugs.winehq.org/attachment.cgi?id=55150 xaudio2: Use ffmpeg to convert non-PCM formats
Rebased patch.
https://bugs.winehq.org/show_bug.cgi?id=39402
fjfrackiewicz@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |fjfrackiewicz@gmail.com
--- Comment #6 from fjfrackiewicz@gmail.com --- (In reply to Andrew Eikum from comment #5)
Created attachment 55150 [details] xaudio2: Use ffmpeg to convert non-PCM formats
Rebased patch.
Hi Andrew,
If Wine is to use ffmpeg as a dependency, will it be ffmpeg 3.1.1 or 2.8.7? The reason I ask is that some distros offer both like Arch:
ffmpeg 3.1.1 - https://www.archlinux.org/packages/extra/i686/ffmpeg/
ffmpeg 2.8.7 - https://www.archlinux.org/packages/extra/x86_64/ffmpeg2.8/
https://bugs.winehq.org/show_bug.cgi?id=39402
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |leslie_alistair@hotmail.com
https://bugs.winehq.org/show_bug.cgi?id=39402
--- Comment #7 from Andrew Eikum aeikum@codeweavers.com --- (In reply to fjfrackiewicz from comment #6)
If Wine is to use ffmpeg as a dependency, will it be ffmpeg 3.1.1 or 2.8.7?
Because of ffmpeg's unstable API, this isn't likely to be accepted into Wine, unfortunately. However, the part of the API we use hasn't changed between 2.8 and 3.1, so it should work with either with no changes.
https://bugs.winehq.org/show_bug.cgi?id=39402
--- Comment #8 from Bruno Jesus 00cpxxx@gmail.com --- (In reply to Andrew Eikum from comment #7)
(In reply to fjfrackiewicz from comment #6)
If Wine is to use ffmpeg as a dependency, will it be ffmpeg 3.1.1 or 2.8.7?
Because of ffmpeg's unstable API, this isn't likely to be accepted into Wine, unfortunately. However, the part of the API we use hasn't changed between 2.8 and 3.1, so it should work with either with no changes.
Are there any other options? What is the problem of using it until it breaks (if it ever breaks)? Someone will open a bug and it will be fixed.
https://bugs.winehq.org/show_bug.cgi?id=39402
--- Comment #9 from Andrew Eikum aeikum@codeweavers.com --- (In reply to Bruno Jesus from comment #8)
(In reply to Andrew Eikum from comment #7)
(In reply to fjfrackiewicz from comment #6)
If Wine is to use ffmpeg as a dependency, will it be ffmpeg 3.1.1 or 2.8.7?
Because of ffmpeg's unstable API, this isn't likely to be accepted into Wine, unfortunately. However, the part of the API we use hasn't changed between 2.8 and 3.1, so it should work with either with no changes.
Are there any other options? What is the problem of using it until it breaks (if it ever breaks)? Someone will open a bug and it will be fixed.
It was discussed on wine-devel and IRC:
https://www.winehq.org/pipermail/wine-devel/2015-August/108820.html
https://www.winehq.org/pipermail/wine-patches/2015-September/142293.html
Personally I agree with you, but the consensus is otherwise, so it's out of tree for now.
https://bugs.winehq.org/show_bug.cgi?id=39402
Andrew Eikum aeikum@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |andrew.mrolko@gmail.com
--- Comment #10 from Andrew Eikum aeikum@codeweavers.com --- *** Bug 44956 has been marked as a duplicate of this bug. ***
https://bugs.winehq.org/show_bug.cgi?id=39402
demurgos@demurgos.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |demurgos@demurgos.net
--- Comment #11 from demurgos@demurgos.net --- Could you add Skyrim Special Edition (https://appdb.winehq.org/objectManager.php?sClass=version&iId=34366) to the list of affected apps? This bug breaks NPC dialogues and other scripts (for example it prevents the opening sequence to advance, see bug 44956).
Is there also a way to move forward with this issue? Is it still impossible to use ffmpeg?
https://bugs.winehq.org/show_bug.cgi?id=39402
--- Comment #12 from Andrew Eikum aeikum@codeweavers.com --- Someone on IRC pointed to ffms2, which seems to be a stable wrapper around ffmpeg. It may be a good fit. We'd need to confirm that it will work for our purposes, and that it is widely available in popular distros, preferably on both architectures.
https://bugs.winehq.org/show_bug.cgi?id=39402
--- Comment #13 from Andrew Eikum aeikum@codeweavers.com --- As for your appdb request, you'll need to ask the appdb maintainer for that game to add the bug.
While this is high up on my priority list, I'm not actively working on it right now. If someone wants to take the ffms2 ball and run with it, please do. I don't think it should be too hard, you can use my ffmpeg patch on this bug as a rough guide.
https://bugs.winehq.org/show_bug.cgi?id=39402
Zebediah Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |z.figura12@gmail.com
--- Comment #14 from Zebediah Figura z.figura12@gmail.com --- (In reply to Andrew Eikum from comment #12)
Someone on IRC pointed to ffms2, which seems to be a stable wrapper around ffmpeg. It may be a good fit. We'd need to confirm that it will work for our purposes, and that it is widely available in popular distros, preferably on both architectures.
As far as I can tell this is too restrictive, e.g. it only allows reading from files.
https://bugs.winehq.org/show_bug.cgi?id=39402
tokktokk fdsfgs@krutt.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |fdsfgs@krutt.org
https://bugs.winehq.org/show_bug.cgi?id=39402
Joel Holdsworth joel@airwebreathe.org.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |joel@airwebreathe.org.uk
https://bugs.winehq.org/show_bug.cgi?id=39402
Zebediah Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Lost Planet 2 Benchmark |Multiple applications are |crashes at launch due to |silent or crash with |missing audio format |builtin xaudio2 due to |conversion |missing audio conversion in |(IXAudio2Impl_CreateSourceV |IXAudio2Impl_CreateSourceVo |oice) |ice (Lost Planet 2 | |Benchmark, Skyrim, | |Skullgirls, Terraria)
https://bugs.winehq.org/show_bug.cgi?id=39402
Zebediah Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |gzoli44@gmail.com
--- Comment #15 from Zebediah Figura z.figura12@gmail.com --- *** Bug 45189 has been marked as a duplicate of this bug. ***
https://bugs.winehq.org/show_bug.cgi?id=39402
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |juanesteban.uribe@hotmail.c | |om
--- Comment #16 from Anastasius Focht focht@gmx.net --- *** Bug 42620 has been marked as a duplicate of this bug. ***
https://bugs.winehq.org/show_bug.cgi?id=39402
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Multiple applications are |Multiple applications are |silent or crash with |silent or crash with |builtin xaudio2 due to |builtin xaudio2 due to |missing audio conversion in |missing audio conversion in |IXAudio2Impl_CreateSourceVo |IXAudio2Impl_CreateSourceVo |ice (Lost Planet 2 |ice (Lost Planet 2 |Benchmark, Skyrim, |Benchmark, Skyrim, |Skullgirls, Terraria) |Skullgirls, Terraria, | |Stardew Valley) CC| |focht@gmx.net
https://bugs.winehq.org/show_bug.cgi?id=39402
--- Comment #17 from Andrew Eikum aeikum@codeweavers.com --- Created attachment 61526 --> https://bugs.winehq.org/attachment.cgi?id=61526 xaudio2: Use ffmpeg 4.x to convert WMA formats
I've updated the FFmpeg patch to use the new decoder APIs introduced in ffmpeg 4.0. The old patch should still be used with ffmpeg 3.x. It hasn't been very well tested, but it works well with Skryim at least.
https://bugs.winehq.org/show_bug.cgi?id=39402
Forest forestcode@ixio.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |forestcode@ixio.org
--- Comment #18 from Forest forestcode@ixio.org --- Thanks for working on this, Andrew.
My PPA is currently building patched packages for ubuntu 18.04. I probably won't keep them updated as new versions appear, but for now, they might be a convenient way for others to work around the problem.
https://launchpad.net/~foresto/+archive/ubuntu/winepatched
https://bugs.winehq.org/show_bug.cgi?id=39402
--- Comment #19 from Forest forestcode@ixio.org --- This project seems relevant:
https://github.com/flibitijibibo/FACT
https://bugs.winehq.org/show_bug.cgi?id=39402
Itzamna tlatoani@protonmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |tlatoani@protonmail.com
--- Comment #20 from Itzamna tlatoani@protonmail.com --- Created attachment 61570 --> https://bugs.winehq.org/attachment.cgi?id=61570 Rebase the old XAudio2 patch for ffmpeg 3
Hello,
I rebased the old XAudio2 patch for ffmpeg versions < 4 on wine 3.9, as ffmpeg 4 is not marked stable in most distributions.
https://bugs.winehq.org/show_bug.cgi?id=39402
zzzzzyzz@hacari.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |zzzzzyzz@hacari.org
https://bugs.winehq.org/show_bug.cgi?id=39402
--- Comment #21 from demurgos@demurgos.net --- Hi, multiple people were able to successfully use the patch by Andrew Eikum (comment 17) according to the Skyrim SE appDB page.
What are the blockers to get it merged and fixed once and for all?
https://bugs.winehq.org/show_bug.cgi?id=39402
--- Comment #22 from Zebediah Figura z.figura12@gmail.com --- (In reply to demurgos from comment #21)
Hi, multiple people were able to successfully use the patch by Andrew Eikum (comment 17) according to the Skyrim SE appDB page.
What are the blockers to get it merged and fixed once and for all?
Comments 7-9 may be of interest to you.
https://bugs.winehq.org/show_bug.cgi?id=39402
Jerry accounts@jerryscomputing.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |accounts@jerryscomputing.co | |m
--- Comment #23 from Jerry accounts@jerryscomputing.com --- I used this patch specifically the "rebase the old XAudio2 patch for ffmpeg3" with the fallout 4 game. but main menu sounds are skipping, like it plays and then restarts also the radio in game skips songs, with out waiting for one to finish, is this related to this? or is it something else I should be looking at? the other sounds in game are fixed.
https://bugs.winehq.org/show_bug.cgi?id=39402
--- Comment #24 from Joel Holdsworth joel@airwebreathe.org.uk --- Could the ffmpeg patch go into wine-staging?
https://bugs.winehq.org/show_bug.cgi?id=39402
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch
https://bugs.winehq.org/show_bug.cgi?id=39402
--- Comment #25 from Zebediah Figura z.figura12@gmail.com --- (In reply to Joel Holdsworth from comment #24)
Could the ffmpeg patch go into wine-staging?
Yes, but it needs to be in a form that works with ffmpeg version 2 (which the build machines use). Preferably it should be able to work with multiple versions; I think 2, 3, 4 are all in use.
https://bugs.winehq.org/show_bug.cgi?id=39402
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |STAGED Staged patchset| |https://github.com/wine-sta | |ging/wine-staging/tree/mast | |er/patches/xaudio2_7-WMA_su | |pport
--- Comment #26 from Alistair Leslie-Hughes leslie_alistair@hotmail.com --- I have staged the ffmpeg 4.x version for now and we can updated it once we have worked out if previous version can be used easily.
The attached ffmpeg 3, fails to compile when older version of the libraries are used (Ubuntu trusty).
https://bugs.winehq.org/show_bug.cgi?id=39402
--- Comment #27 from Joel Holdsworth joel@airwebreathe.org.uk --- Hows does gstreamer get around the ffmpeg API instability? Could that method be replicated by Wine?
Alternatively would a gstreamer-based patch be more likely to be accepted? In that case gstreamer would act as an abstraction layer around ffmpeg?
https://bugs.winehq.org/show_bug.cgi?id=39402
--- Comment #28 from Forest forestcode@ixio.org ---
The attached ffmpeg 3, fails to compile when older version of the libraries are used (Ubuntu trusty).
Didn't we pass Ubuntu Trusty's end of life a couple months ago? https://wiki.ubuntu.com/Releases
Is ffmpeg 4.x included in currently-supported distributions? I see only 2.x and 3.x in current and upcoming Ubuntu releases: https://packages.ubuntu.com/search?suite=all%C2%A7ion=all&arch=any&k...
https://bugs.winehq.org/show_bug.cgi?id=39402
--- Comment #29 from Andrew Eikum aeikum@codeweavers.com --- (In reply to Joel Holdsworth from comment #27)
Hows does gstreamer get around the ffmpeg API instability? Could that method be replicated by Wine?
Alternatively would a gstreamer-based patch be more likely to be accepted? In that case gstreamer would act as an abstraction layer around ffmpeg?
Maybe, though I find gstreamer's API to be a nightmare.
https://bugs.winehq.org/show_bug.cgi?id=39402
--- Comment #30 from demurgos@demurgos.net --- The latest Wine staging version got published on Arch Linux. It contains the patch using ffmpeg 4.
This patch helped me for Skyrim SE, but not completely. I would like to know if other people are able to test it.
I described what I had before in this comment: https://bugs.winehq.org/show_bug.cgi?id=38668#c69 When using the builtin xaudio, there was no dialog during the intro sequence, just horse sounds. This prevented the intro from going forward and you were stuck in the cart. Also, there were no dialogue subtitles.
With this patch, I get dialogue subtitles, the NPC's mouth is moving and the intro sequence plays normally: I can go out of the cart and create my character. BUT there is no voice or music. I hear still hear the horse sounds but there's no sound for voice or music.
When using the native xaudio (with the windowed low-res workaround) I get voice and music.
Do other people encounter this issue? Is there a way to get music/voice?
https://bugs.winehq.org/show_bug.cgi?id=39402
--- Comment #31 from Jerry accounts@jerryscomputing.com --- In Fallout 4, see comment #23 as well I do get voice, but the music skips.
https://bugs.winehq.org/show_bug.cgi?id=39402
--- Comment #32 from Andrew Eikum aeikum@codeweavers.com --- (In reply to demurgos from comment #30)
With this patch, I get dialogue subtitles, the NPC's mouth is moving and the intro sequence plays normally: I can go out of the cart and create my character. BUT there is no voice or music. I hear still hear the horse sounds but there's no sound for voice or music.
Can you post a log with the channels from https://wiki.winehq.org/Sound ?
https://bugs.winehq.org/show_bug.cgi?id=39402
--- Comment #33 from demurgos@demurgos.net --- Created attachment 61769 --> https://bugs.winehq.org/attachment.cgi?id=61769 Skyrim SE intro logs, Wine Stagin 3.12 no music
https://bugs.winehq.org/show_bug.cgi?id=39402
demurgos@demurgos.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #61769|text/plain |application/gzip mime type| | Attachment #61769|Skyrim SE intro logs, Wine |Skyrim SE intro logs, Wine description|Stagin 3.12 no music |Staging 3.12 no music
https://bugs.winehq.org/show_bug.cgi?id=39402
--- Comment #34 from demurgos@demurgos.net --- (In reply to Andrew Eikum from comment #32)
Can you post a log with the channels from https://wiki.winehq.org/Sound ?
Audio driver: winepulse.drv Wine version: 3.12 (staging) OS: Linux 64 bit (latest Arch Linux)
Executed command:
WINEDEBUG=+tid,+seh,+mmdevapi,+winmm,+driver,+msacm,+midi,+dsound,+dsound3d,+xaudio2,+xapofx,+dmusic,+mci,+pulse,+oss,+alsa,+coreaudio,+timestamp WINEPREFIX=/opt/wine/steam/ wine drive_c/Program\ Files\ (x86)/Steam/Steam.exe > /tmp/output.txt 2>&1
Actions: I opened Steam, selected Skyrim SE, started a new game and let the intro play for about 20 seconds. When the title ("Skyrim") appears, there should be music but were only horse sounds.
Logs: See attachment #61769 https://bugs.winehq.org/attachment.cgi?id=61769
https://bugs.winehq.org/show_bug.cgi?id=39402
gzoli44@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC|gzoli44@gmail.com |
https://bugs.winehq.org/show_bug.cgi?id=39402
--- Comment #35 from Andrew Eikum aeikum@codeweavers.com --- (In reply to demurgos from comment #34)
Logs: See attachment #61769 [details] https://bugs.winehq.org/attachment.cgi?id=61769
Thanks. Your log says:
84921.201:00ac:warn:xaudio2:IXAudio2Impl_CreateSourceVoice OpenAL can't use this format and no FFmpeg, so giving up
Whoever built your Wine didn't have ffmpeg available at build time (or the changes to configure.ac are buggy).
It does show a bug, though. We should be returning AUDCLNT_E_UNSUPPORTED_FORMAT instead of "successfully" creating the voice with a format we can't handle.
https://bugs.winehq.org/show_bug.cgi?id=39402
--- Comment #36 from Jerry accounts@jerryscomputing.com --- Created attachment 61771 --> https://bugs.winehq.org/attachment.cgi?id=61771 fallout 4 music skips
wine 3.10 dsound patch (see bug 41271) + staging + " Rebase the old XAudio2 patch for ffmpeg 3" patch ubuntu 18.04 wine audio driver: alsa (same or similar results with pulseaudio)
I compiled this wine. the "game.sh" just sets speaker volume and pauses media players, ignore first 32 lines or so, I believe relevant output starts on line 273.
main menu background music, repeats or goes back to start of the track after a few seconds, and in loaded game radio, plays for a few seconds and then skips to next track.
I hope this is useful.
launch script:
export DXVK_HUD=fps export PULSE_LATENCY_MSEC=60 WINEDEBUG=+tid,+seh,+mmdevapi,+winmm,+driver,+msacm,+midi,+dsound,+dsound3d,+xaudio2,+xapofx,+dmusic,+mci,+pulse,+oss,+alsa,+coreaudio,+timestamp export WINEPREFIX=~/.PlayOnLinux/wineprefix/Fallout4_test cd ~/.PlayOnLinux/wineprefix/Fallout4_test/drive_c/Games/Fallout\ 4 ~/.bin/game.sh '/home/jerry/.PlayOnLinux/wine/linux-amd64/3.10-Fallout4/bin/wine Fallout4.exe'
/tmp/output.txt 2>&1
https://bugs.winehq.org/show_bug.cgi?id=39402
demurgos@demurgos.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #61769|0 |1 is obsolete| |
https://bugs.winehq.org/show_bug.cgi?id=39402
--- Comment #37 from demurgos@demurgos.net --- Created attachment 61773 --> https://bugs.winehq.org/attachment.cgi?id=61773 Skyrim SE intro logs, Wine Staging 3.12 no music
https://bugs.winehq.org/show_bug.cgi?id=39402
--- Comment #38 from demurgos@demurgos.net --- (In reply to Andrew Eikum from comment #35)
Thanks. Your log says:
84921.201:00ac:warn:xaudio2:IXAudio2Impl_CreateSourceVoice OpenAL can't use this format and no FFmpeg, so giving up
Whoever built your Wine didn't have ffmpeg available at build time (or the changes to configure.ac are buggy).
I had wine-staging from the Arch repos.
I know compiled wine myself and applied the patches. I have ffmpeg 4 on my computer.
After starting the intro sequence, there is still no voice or music. Or maybe there is a bit of music. When comparing my build against the one from the repo, I think that the first few seconds of the theme are playing in loop. It's just a few drums and not that loud, but there's definitely something that wasn't there I think. After checking again with the previous version, I think that the old version already played this loop but with a very very low volume (it's barely audible so I may be confusing it).
So, after properly applying and building your patch, here is my situation: - The dialog subtitles are there and the intro sequence is not stuck - Still no voice - The first few seconds of the theme are now playing in loop (or it already played in loop but there was an issue with the volume)
The first few seconds looping is similar to the issue above about Halo.
https://bugs.winehq.org/show_bug.cgi?id=39402
--- Comment #39 from demurgos@demurgos.net --- (sorry for the double post)
I attached logs obtained by running the version I compiled myself in #61773
https://bugs.winehq.org/show_bug.cgi?id=39402
Itzamna tlatoani@protonmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC|tlatoani@protonmail.com |
https://bugs.winehq.org/show_bug.cgi?id=39402
--- Comment #40 from Andrew Eikum aeikum@codeweavers.com --- (In reply to demurgos from comment #37)
Created attachment 61773 [details] Skyrim SE intro logs, Wine Staging 3.12 no music
This log still shows the same problem:
91730.063:00ae:warn:xaudio2:IXAudio2Impl_CreateSourceVoice OpenAL can't use this format and no FFmpeg, so giving up
Check the configure output in config.log. If you build from the official Arch PKGBUILD, it's in src/wine-staging-64-build/config.log. It may give a hint why it can't find libavutil and/or libavcodec. It will also print "XAudio2 WMA conversion won't be supported" if it fails to find ffmpeg.
https://bugs.winehq.org/show_bug.cgi?id=39402
--- Comment #41 from Andrew Eikum aeikum@codeweavers.com --- (In reply to Jerry from comment #36)
Created attachment 61771 [details] fallout 4 music skips
There's a lot going on here. I recommend using the pulseaudio driver if you are using pulseaudio. Also I think it is no longer helpful to set PULSE_LATENCY_MSEC, so I suggest removing that if it isn't actually helping you. Finally, there is a known issue with USB devices with certain games. There is a patch attached to bug 28282 that will hopefully help with this. This patch is working its way into wine-staging, but you can try it now.
https://bugs.winehq.org/show_bug.cgi?id=39402
--- Comment #42 from demurgos@demurgos.net --- (In reply to Andrew Eikum from comment #40)
(In reply to demurgos from comment #37)
Created attachment 61773 [details] Skyrim SE intro logs, Wine Staging 3.12 no music
This log still shows the same problem:
91730.063:00ae:warn:xaudio2:IXAudio2Impl_CreateSourceVoice OpenAL can't use this format and no FFmpeg, so giving up
Check the configure output in config.log. If you build from the official Arch PKGBUILD, it's in src/wine-staging-64-build/config.log. It may give a hint why it can't find libavutil and/or libavcodec. It will also print "XAudio2 WMA conversion won't be supported" if it fails to find ffmpeg.
I missed the error due to a case sensitive search...
I have some good news: the patch fixes all the sound/music/voice/scripts for me.
The issue was effectively related to my build. I won't lie: building and running a custom Wine version turned out to be pretty painful. It took me a lot of time, but once I had it properly built, everything seemed to work! I had visual artifacts but there's an other issue for this. This patch makes Skyrim SE playable, thanks!
(Note: I reported the build issue to the maintainer of the Arch package, I hope that the next release will be built with ffmpeg)
https://bugs.winehq.org/show_bug.cgi?id=39402
demurgos@demurgos.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #61773|0 |1 is obsolete| |
https://bugs.winehq.org/show_bug.cgi?id=39402
Jerry accounts@jerryscomputing.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #61771|0 |1 is obsolete| |
--- Comment #43 from Jerry accounts@jerryscomputing.com --- Created attachment 61774 --> https://bugs.winehq.org/attachment.cgi?id=61774 Fallout 4 music skips
so this time I removed the export PULSE_LATENCY_MSEC=60 and set the wine audio driver to pulse, I had set it before hoping maybe it would fix it somehow..
everything else the same though. I didn't have any sound crackling or change to the issue, as far as I could tell in running it though.
still skipping.
https://bugs.winehq.org/show_bug.cgi?id=39402
Robert Walker bob.mt.wya@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |bob.mt.wya@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=39402
Vlad vblanton@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |vblanton@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=39402
David Girón duhowpi@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |duhowpi@gmail.com
--- Comment #44 from David Girón duhowpi@gmail.com --- Wine 3.12 staged, Warframe sounds were not working at all, only 2 audio files would play (GUI effects). Game log is always spamming:
Snd [Error]: CreateSourceVoice failed (0x8007000E) (The game requires the xapofx1_5.dll.)
Also, setting Wine to load "xaudio2_7 native,builtin" , would fix this and all sounds work.
https://bugs.winehq.org/show_bug.cgi?id=39402
Kieran ramos.kieran@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |ramos.kieran@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=39402
algebro@tuta.io changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |algebro@tuta.io
--- Comment #45 from algebro@tuta.io --- (In reply to demurgos from comment #42)
(In reply to Andrew Eikum from comment #40)
(In reply to demurgos from comment #37)
Created attachment 61773 [details] Skyrim SE intro logs, Wine Staging 3.12 no music
This log still shows the same problem:
91730.063:00ae:warn:xaudio2:IXAudio2Impl_CreateSourceVoice OpenAL can't use this format and no FFmpeg, so giving up
Check the configure output in config.log. If you build from the official Arch PKGBUILD, it's in src/wine-staging-64-build/config.log. It may give a hint why it can't find libavutil and/or libavcodec. It will also print "XAudio2 WMA conversion won't be supported" if it fails to find ffmpeg.
I missed the error due to a case sensitive search...
I have some good news: the patch fixes all the sound/music/voice/scripts for me.
The issue was effectively related to my build. I won't lie: building and running a custom Wine version turned out to be pretty painful. It took me a lot of time, but once I had it properly built, everything seemed to work! I had visual artifacts but there's an other issue for this. This patch makes Skyrim SE playable, thanks!
(Note: I reported the build issue to the maintainer of the Arch package, I hope that the next release will be built with ffmpeg)
Did you have to pass any extra options to build it with ffmpeg support? Or is simply building it with ffmpeg installed enough to make this patch work?
https://bugs.winehq.org/show_bug.cgi?id=39402
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |goodman.jaime@gmail.com
--- Comment #46 from Anastasius Focht focht@gmx.net --- *** Bug 40412 has been marked as a duplicate of this bug. ***
https://bugs.winehq.org/show_bug.cgi?id=39402
--- Comment #47 from demurgos@demurgos.net --- (In reply to algebro from comment #45)
(In reply to demurgos from comment #42)
The issue was effectively related to my build. I won't lie: building and running a custom Wine version turned out to be pretty painful. It took me a lot of time, but once I had it properly built, everything seemed to work! I had visual artifacts but there's an other issue for this. This patch makes Skyrim SE playable, thanks!
Did you have to pass any extra options to build it with ffmpeg support? Or is simply building it with ffmpeg installed enough to make this patch work?
I am on Arch Linux, after trying to build Wine staging using the website's documentation, I ended up using the wine-stagit-git AUR package.
1. Install `ffmpeg`: pacman -S ffmpeg 2. Download `wine-staging-git`: git clone https://aur.archlinux.org/wine-staging-git.git 3. Build and install it: makepkg --syncdeps --install
As far as I remember, I did not set any flag or change any config. I just had ffmpeg on my system before compiling and installing wine staging. The AUR package does not uses all my CPUs though, so the compilation took a lot of time.
---
As an update regarding my experience with this patch: it works great. I installed dxvk to solve my graphics issue and Skyrim SE works great. It still crashes sometime (a dozen crashes in 80 hours) but it plays smoothly.
https://bugs.winehq.org/show_bug.cgi?id=39402
--- Comment #48 from Andrew Eikum aeikum@codeweavers.com --- (In reply to demurgos from comment #47)
The AUR package does not uses all my CPUs though, so the compilation took a lot of time.
You can set MAKEFLAGS in /etc/makepkg.conf to fix this.
https://bugs.winehq.org/show_bug.cgi?id=39402
Arthur Huillet arthur.huillet@free.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |arthur.huillet@free.fr
https://bugs.winehq.org/show_bug.cgi?id=39402
--- Comment #49 from Arthur Huillet arthur.huillet@free.fr --- I'm using https://github.com/wine-staging/wine-staging/blob/master/patches/xaudio2_7-W... @ 8b65c06
With it, in Fallout 4, the sound will drop after a while, sometimes also hanging the game entirely. I realize this may not be the latest version of the patch, but I found that the problem came from avcodec starting to return errors, and xaudio2 choking on them. Ignoring these errors seems to make the problem go away. See attached patch.
https://bugs.winehq.org/show_bug.cgi?id=39402
--- Comment #50 from Arthur Huillet arthur.huillet@free.fr --- Created attachment 62048 --> https://bugs.winehq.org/attachment.cgi?id=62048 ignore ffmpeg errors
https://bugs.winehq.org/show_bug.cgi?id=39402
GloriousEggroll@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |GloriousEggroll@gmail.com
--- Comment #51 from GloriousEggroll@gmail.com --- Created attachment 62137 --> https://bugs.winehq.org/attachment.cgi?id=62137 error log regarding avcodec_send_packet
Working on debugging Warframe as it suffers from this bug. Steps: 1. Compile vanilla wine with the selected staging patches and my FXEcho patch:
https://gitlab.com/snippets/1748561
wuauserv-Dummy_Service wininet-InternetCrackUrlW xaudio2_7-OnVoiceProcessingPassStart xaudio2_7-WMA_support xaudio2_CommitChanges
2. Install and run the game. Login, go to the navigation. Game will crash immediately do to the following error:
240188.170:0008:0063:warn:xaudio2:xa2buffer_queue_period avcodec_send_packet failed: Operation not permitted
I also tried Arthur's method to comment out the break that makes the converter ignore errors, game still crashes at the same place, after trying to render the audio (and failing with a short screech noise)
so something is being sent that shouldnt be in averr = avcodec_send_packet(src->conv_ctx, &avpkt);
debug log leading up to the crash attached.
https://bugs.winehq.org/show_bug.cgi?id=39402
Sven Arvidsson sa@whiz.se changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |sa@whiz.se
--- Comment #52 from Sven Arvidsson sa@whiz.se --- Brink needs native xaudio2_6 for sound to work.
RAGE needs native xaudio2_7 to start, and sound to work, or it will crash.
I can file separate bugs for these if needed.
https://bugs.winehq.org/show_bug.cgi?id=39402
--- Comment #53 from Jerry accounts@jerryscomputing.com --- To make use of this as it is currently in wine-3.15-staging from the repo for ubuntu 18.04
What is the required version of ffmpeg?
in my ubuntu 18.04 gives this as its version information:
ffmpeg -version ffmpeg version 3.4.4-0ubuntu0.18.04.1 Copyright (c) 2000-2018 the FFmpeg developers built with gcc 7 (Ubuntu 7.3.0-16ubuntu3) configuration: --prefix=/usr --extra-version=0ubuntu0.18.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared libavutil 55. 78.100 / 55. 78.100 libavcodec 57.107.100 / 57.107.100 libavformat 57. 83.100 / 57. 83.100 libavdevice 57. 10.100 / 57. 10.100 libavfilter 6.107.100 / 6.107.100 libavresample 3. 7. 0 / 3. 7. 0 libswscale 4. 8.100 / 4. 8.100 libswresample 2. 9.100 / 2. 9.100 libpostproc 54. 7.100 / 54. 7.100
https://bugs.winehq.org/show_bug.cgi?id=39402
--- Comment #54 from demurgos@demurgos.net --- (In reply to Jerry from comment #53)
To make use of this as it is currently in wine-3.15-staging from the repo for ubuntu 18.04
What is the required version of ffmpeg?
in my ubuntu 18.04 gives this as its version information:
ffmpeg -version ffmpeg version 3.4.4-0ubuntu0.18.04.1 Copyright (c) 2000-2018 the FFmpeg
See Comment #17 (https://bugs.winehq.org/show_bug.cgi?id=39402#c17)
I've updated the FFmpeg patch to use the new decoder APIs introduced in ffmpeg 4.0.
The patch on staging requires ffmpeg 4.
https://bugs.winehq.org/show_bug.cgi?id=39402
--- Comment #55 from Jerry accounts@jerryscomputing.com --- I would like to compare the two patches as to how they work in practice. The one for FFmpeg 3 and FFmpeg 4, also as I have tried before, but I don't think I can use the "ignore FFmpeg errors" patch while using the FFmpeg 3 patch.
I've built FFmpeg 4, is there a way to make wine use a local FFmpeg 4 when FFmpeg 3 is installed globally?
Furthermore, while I know that the next version of Ubuntu will have FFmpeg 4, I would like to stick with my current version, as its an LTS version. I would personally prefer to avoid upgrading the whole system, so I can make use of this one patch, for the one game.
I've tried the "LD_LIBRARY_PATH" and pointing it to the build of ffmpeg4 if I do the "sudo make install" by default it wants to install in /usr/local, would wine find it there or how should I approach this?
https://bugs.winehq.org/show_bug.cgi?id=39402
C0rn3j spleefer90@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |spleefer90@gmail.com
--- Comment #56 from C0rn3j spleefer90@gmail.com --- Am playing Skyrim SE with wine-staging-git (3.16, compiled sometime around sept 23) with ffmpeg 4.
So far the game didn't crash, but the audio is weird Sounds pop in and out depending on your distance from the source. I think the way the patch works does not discern audio distance, so what was supposed to be very silent or nearly inaudible sounds as it's right next to you.
My game is modded but I believe it happened before I touched mods too, is someone experiencing same weird audio quirks?
https://bugs.winehq.org/show_bug.cgi?id=39402
--- Comment #57 from Zebediah Figura z.figura12@gmail.com --- (In reply to C0rn3j from comment #56)
Am playing Skyrim SE with wine-staging-git (3.16, compiled sometime around sept 23) with ffmpeg 4.
So far the game didn't crash, but the audio is weird Sounds pop in and out depending on your distance from the source. I think the way the patch works does not discern audio distance, so what was supposed to be very silent or nearly inaudible sounds as it's right next to you.
My game is modded but I believe it happened before I touched mods too, is someone experiencing same weird audio quirks?
This is bug 45311.
https://bugs.winehq.org/show_bug.cgi?id=39402
--- Comment #58 from demurgos@demurgos.net --- What are the blockers to move forward and merge the patch?
It has been tested by many people (including myself) and is working fine. There are still minor issues tracked in other tickets, but landing this patch would be a big improvement. At the moment, it requires me to keep compiling Wine myself to be able to use it.
https://bugs.winehq.org/show_bug.cgi?id=39402
--- Comment #59 from GloriousEggroll@gmail.com --- (In reply to demurgos from comment #58)
What are the blockers to move forward and merge the patch?
It has been tested by many people (including myself) and is working fine. There are still minor issues tracked in other tickets, but landing this patch would be a big improvement. At the moment, it requires me to keep compiling Wine myself to be able to use it.
the WMA decode patch does not fully work in all cases, in particular for 64 bit. Prime examples would be missing music in Fallout 4, and a hard crash in 64 bit Warframe.
The CreateSourceVoice patch works.
https://bugs.winehq.org/show_bug.cgi?id=39402
--- Comment #60 from Arthur Huillet arthur.huillet@free.fr --- Even if the current patch doesn't work perfectly (I should know, as I had to hack it to make Fallout4 playable), it's a net improvement over the nothing that is currently in place...
https://bugs.winehq.org/show_bug.cgi?id=39402
--- Comment #61 from Andrew Eikum aeikum@codeweavers.com --- I don't think anything has changed since the last time this was discussed in June. See Comment 22.
https://bugs.winehq.org/show_bug.cgi?id=39402
Kieran ramos.kieran@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC|ramos.kieran@gmail.com |
https://bugs.winehq.org/show_bug.cgi?id=39402
--- Comment #62 from Jerry accounts@jerryscomputing.com --- could the ignore ffmpeg errors patch be modified to work with the ffmpeg v3 patch? the ignore errors patch, for the most part, seems to fix the music issues that occur in fallout 4.
even with the ffmpeg 4 patch and ignore errors some audio fuzzing did occur, that's probably why they were errors.
with wine3.19 (no staging, as it has the ffmpeg 4 version) with the v3 patch, and then when trying to add the ignore patch I get this error:
jerry@ARC-T9010 ~/Downloads/wine-compile/3.19/wine-3.19 % patch -p1 < ../ignore-ffmpeg-errors.patch patching file dlls/xaudio2_7/xaudio_dll.c Hunk #1 FAILED at 2527. 1 out of 1 hunk FAILED -- saving rejects to file dlls/xaudio2_7/xaudio_dll.c.rej
https://bugs.winehq.org/show_bug.cgi?id=39402
Rusty Shackleford r9shackleford@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |r9shackleford@gmail.com
--- Comment #63 from Rusty Shackleford r9shackleford@gmail.com --- Hi, I have the same issue as Comment 51. About 25% of the time it actually plays but crashes soon after.
From peeking at the trace logs, I noticed that it plays WAVE_FORMAT_ADPCM
sounds just fine but chokes on WAVE_FORMAT_WMAUDIO2. This information might be of help to someone, maybe?
https://bugs.winehq.org/show_bug.cgi?id=39402
--- Comment #64 from Sven sven.wine@gmail.com --- Disgaea 5 is also affected by this.
https://bugs.winehq.org/show_bug.cgi?id=39402
Dmitry Grigoriev mail@dimgel.ru changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mail@dimgel.ru
https://bugs.winehq.org/show_bug.cgi?id=39402
Anthony Jagers noonetinone@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |noonetinone@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=39402
Ethan Lee flibitijibibo@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |flibitijibibo@gmail.com
--- Comment #65 from Ethan Lee flibitijibibo@gmail.com --- Wine 4.3's new XAudio2 implementation kind of fixes and breaks this at the same time. At this point it's no longer Wine's problem since FAudio does all the work, so from Wine's perspective this is... INVALID maybe? FAudio has the same problem though, where we have to use a special FFmpeg-linked build of FAudio to support WMA. However, MSADPCM is always supported no matter what, so for games that use the latter format this is definitely resolved.
https://bugs.winehq.org/show_bug.cgi?id=39402
--- Comment #66 from Forest forestcode@ixio.org --- It's really encouraging to see this stuff come together. Is there an issue tracker for ffmpeg license workarounds, such as using the instance in the Steam runtime, or one that's part of the OS distribution?
https://bugs.winehq.org/show_bug.cgi?id=39402
joaopa jeremielapuree@yahoo.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jeremielapuree@yahoo.fr
--- Comment #67 from joaopa jeremielapuree@yahoo.fr --- Does the bug still occur with winr-4.18?
https://bugs.winehq.org/show_bug.cgi?id=39402
Adam Bolte abolte@systemsaviour.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |abolte@systemsaviour.com
https://bugs.winehq.org/show_bug.cgi?id=39402
Zebediah Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |NOTOURBUG Status|STAGED |RESOLVED
--- Comment #68 from Zebediah Figura z.figura12@gmail.com --- I think RESOLVED NOTOURBUG is appropriate here.
https://bugs.winehq.org/show_bug.cgi?id=39402
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- URL|http://www.geforce.com/game |https://web.archive.org/web |s-applications/pc-games/los |/20131108071111if_/http://i |t-planet-2 |nternational.download.nvidi | |a.com/nzone/international/b | |enchmarks/lostplanet2/updat | |ed/LostPlanet2_Benchmark.zi | |p