https://bugs.winehq.org/show_bug.cgi?id=52391
Bug ID: 52391 Summary: No sound effects in Hyperdimension Neptunia Re;Birth 1 since import of FAudio Product: Wine Version: 7.0-rc5 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: xactengine Assignee: wine-bugs@winehq.org Reporter: j-r@online.de Distribution: ---
Since the import of FAudio Hyperdimension Neptunia Re;Birth 1 (GOG version) triggers the following FAudio assertion since the import of FAUDIO in commit 6b45777121fcd50d9b7d5b649c6710063b549892 already on the title screen while highlighting or selecting a menu entry
Assertion failed: (voice->src.wmadec != NULL && (pBufferWMA != NULL || (voice->src.format->wFormatTag == FAUDIO_FORMAT_XMAUDIO2)) || (voice->src.wmadec == NULL && (pBufferWMA == NULL && voice->src.format->wFormatTag != FAUDIO_FORMAT_XMAUDIO2) ), file libs/faudio/src/FAudio.c, line 2456
Note that this assertion was changed in the import of FAudio 21.12 in da89825f98e4f0cb3875735345a455512b36b665 (erronously declared as import of 21.11), without effect on this game (contrary to what https://bugs.winehq.org/show_bug.cgi?id=50757#c2 claims). There is still no sound in 7.0-rc5 (and reverting babaf916ab12c7a9128409f717878919ccc5826b which hides the assertion shows it still triggering the extended assertion condition).
Sound works before 6b45777121fcd50d9b7d5b649c6710063b549892 (also see https://bugs.winehq.org/show_bug.cgi?id=50416 for caveats).
Unfortunately 6b45777121fcd50d9b7d5b649c6710063b549892 suffers from frequent crashing already on the title screen (haven't tested ingame; might be the same as https://bugs.winehq.org/show_bug.cgi?id=50757; despite it claiming to be fixed with exactly that commit; afaict nobody ever confirmed it being fixed) . Fortunately this crashing seems to be fixed or at least much reduced with 7.0-rc5 on my (very old and slow) system.
Sound works fine in 7.0-rc5 after winetricks xact and manually setting xactengine3_7 to native.
Not sure about the relation to this bug, but 7.0-rc5 is showing the following error whenever the game attempts to play a sound
00c8:err:ole:com_get_class_object class {2eeb4adf-4578-4d10-bca7-bb955f56320a} not registered 00c8:err:ole:com_get_class_object no class object {2eeb4adf-4578-4d10-bca7-bb955f56320a} could be created for context 0x1
which I think wasn't there before the regression.
https://bugs.winehq.org/show_bug.cgi?id=52391
j-r@online.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |regression Regression SHA1| |6b45777121fcd50d9b7d5b649c6 | |710063b549892
https://bugs.winehq.org/show_bug.cgi?id=52391
j-r@online.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Hardware|x86-64 |x86
https://bugs.winehq.org/show_bug.cgi?id=52391
--- Comment #1 from j-r@online.de --- Created attachment 71624 --> https://bugs.winehq.org/attachment.cgi?id=71624 +xact3 log
Afaict the +xact3 log doesn't add much information. The assert happens directly when trying to play a sound for the first time.
https://bugs.winehq.org/show_bug.cgi?id=52391
--- Comment #2 from j-r@online.de --- (In reply to j-r from comment #1)
Created attachment 71624 [details] +xact3 log
It is a log from revision 76c9fc8a761c9faff72f97ab508a1afcb28eeb12 with babaf916ab12c7a9128409f717878919ccc5826b reverted.
https://bugs.winehq.org/show_bug.cgi?id=52391
--- Comment #3 from Alexandre Julliard julliard@winehq.org --- A log without enabling assertions would probably be more useful.
https://bugs.winehq.org/show_bug.cgi?id=52391
Rémi Bernon rbernon@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |rbernon@codeweavers.com
--- Comment #4 from Rémi Bernon rbernon@codeweavers.com --- The problem is likely that the game uses WMA/XMA audio, and the Win32 port of FAudio uses Media Foundation WMA decoder transform for that. Wine's Media Foundation doesn't currently implement any decoder transform.
https://bugs.winehq.org/show_bug.cgi?id=52391
j-r@online.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #71624|0 |1 is obsolete| |
--- Comment #5 from j-r@online.de --- Created attachment 71630 --> https://bugs.winehq.org/attachment.cgi?id=71630 +xact3 log of 7aaeec35e2d7cc799461858edb788e412e9a1fbe without any local changes
The same as the previous logs with more instances of not playing a sound marked by the failures to create a filter instance messages
https://bugs.winehq.org/show_bug.cgi?id=52391
--- Comment #6 from j-r@online.de --- (In reply to Rémi Bernon from comment #4)
The problem is likely that the game uses WMA/XMA audio, and the Win32 port of FAudio uses Media Foundation WMA decoder transform for that. Wine's Media Foundation doesn't currently implement any decoder transform.
Makes sense, thanks. I can appreciate the architectural improvement of the win32 build, but am still a bit sad to have effectively wasted my yearly open source time budget on chasing after this. Adding the info that this is a functional downgrade to the commit message might have helped to direct me towards something more productive.
See you next year:-)
https://bugs.winehq.org/show_bug.cgi?id=52391
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |poweroverwhelming982@gmail. | |com
--- Comment #7 from Alexandre Julliard julliard@winehq.org --- *** Bug 52512 has been marked as a duplicate of this bug. ***
https://bugs.winehq.org/show_bug.cgi?id=52391
--- Comment #8 from poweroverwhelming982@gmail.com --- *** Bug 52512 has been marked as a duplicate of this bug. ***
https://bugs.winehq.org/show_bug.cgi?id=52391
Gijs Vermeulen gijsvrm@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|xactengine |winegstreamer Hardware|x86 |x86-64 Summary|No sound effects in |Multiple games are missing |Hyperdimension Neptunia |sound effects since FAudio |Re;Birth 1 since import of |import (Hyperdimension |FAudio |Neptunia Re;Birth 1, Skyrim | |Legendary Edition)
https://bugs.winehq.org/show_bug.cgi?id=52391
--- Comment #9 from poweroverwhelming982@gmail.com --- (In reply to Rémi Bernon from comment #4)
The problem is likely that the game uses WMA/XMA audio, and the Win32 port of FAudio uses Media Foundation WMA decoder transform for that. Wine's Media Foundation doesn't currently implement any decoder transform.
Does this mean that all sounds would stop working, or only sound mixing? Not sure if it's relevant, but in Skyrim's case (duplicate bug 52512) only some sounds don't work while others still do.
https://bugs.winehq.org/show_bug.cgi?id=52391
Sveinar Søpler cybermax@dexter.no changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |cybermax@dexter.no
--- Comment #10 from Sveinar Søpler cybermax@dexter.no --- (In reply to poweroverwhelming982 from comment #9)
Does this mean that all sounds would stop working, or only sound mixing? Not sure if it's relevant, but in Skyrim's case (duplicate bug 52512) only some sounds don't work while others still do.
I was under the impression that some games uses various audio "formats" (codec's), and the sounds that are encoded with WMA might not play, while other sounds would probably still play.
If my understanding is correct, this would explain why some sounds seems to work, while others are silent.
I think you would need to force wine to use systemlib libFAudio <= 22.01 - which would mean a recompile with some wine patches disabled to get WMA sound(s) back, but i have not really tested this with wine-7.1
You can play around with some of the demo's from here: https://github.com/walbourn/directx-sdk-samples. Needs win10 + SDK + Visual Studio to compile tho. XAudio2BasicSound plays a mix of WMA and xWMA encoded files using Xaudio, and can be used for testing purposes and possibly logging.
https://bugs.winehq.org/show_bug.cgi?id=52391
--- Comment #11 from poweroverwhelming982@gmail.com --- (In reply to Sveinar Søpler from comment #10)
Looks like you're right. I checked Skyrim's resource files and it uses .xwm for music, plain old .wav for sounds, and their own .fuz format for voices, which contains a .xwm and a lipsync file. So I can confirm that this is a WMA playback issue, not someting related to audio mixing as I initially assumed. I can also confirm that winetricks xact works here as well. I might try fiddling with the faudio patches, thanks for the additional info.
https://bugs.winehq.org/show_bug.cgi?id=52391
Julian Rüger jr98@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jr98@gmx.net
https://bugs.winehq.org/show_bug.cgi?id=52391
Béla Gyebrószki gyebro69@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |gyebro69@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=52391
--- Comment #12 from Rémi Bernon rbernon@codeweavers.com --- I believe this should be fixed after e4258d529342cc1dc486a136d0f715520b3dd5da, would you mind trying again and confirm?
https://bugs.winehq.org/show_bug.cgi?id=52391
--- Comment #13 from poweroverwhelming982@gmail.com --- (In reply to Rémi Bernon from comment #12)
I believe this should be fixed after e4258d529342cc1dc486a136d0f715520b3dd5da, would you mind trying again and confirm?
I can confirm that e4258d529342cc1dc486a136d0f715520b3dd5da fixes it for Skyrim Legendary Edition, all the sounds now work properly, thanks! The only issue I'm still having in Skyrim is the severe performance drop (bug 52334), just thought I'd mention it here just in case, but the sounds are completely fixed.
https://bugs.winehq.org/show_bug.cgi?id=52391
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |e4258d529342cc1dc486a136d0f | |715520b3dd5da Resolution|--- |FIXED Status|UNCONFIRMED |RESOLVED
--- Comment #14 from Alexandre Julliard julliard@winehq.org --- Reported fixed.
https://bugs.winehq.org/show_bug.cgi?id=52391
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #15 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 7.13.