Saints Row 2 crashes after GameSpy logo when FAudio compiled with WMA support #184
Labels
No labels
Bug
Extensions
New Feature
Not our bug - SDL2
Not our bug - WMA
Utilities
Wine
X3DAudio Accuracy
XACT Accuracy
XAudio2 Accuracy
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-FNA-XNA/FAudio#184
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
-Does not seem to occur when FAudio is compiled without ffmpeg. (Proton uses 20.03 with no ffmpeg and works fine).
-This looks to be related to the wavebank work committed after 20.01
-20.01, while it does load, does not have sound.
It most likely only worked because we failed to read the XACT data entirely, now it fails because of the bad xWMA support. Unless someone is planning to work on FFmpeg’s wma decoder, the fix is to build without FFmpeg support.
I've had looked into this a little, the file format seems to different then the later version. For me, under wine, its failing on the platform check within FAudio.
The FFmpeg support has been replaced with GStreamer. My guess is this will still fail since it sounds more like an XACT content issue.
Should be fixed by
github.com/FNA-XNA/FAudio@f710ff5528When I last looked at this, at appeared that the data structure was out by one byte which is why it ended up with a zero. Adjusting for this, it then crashed when attempt to play.
I've just tried this with your latest change and it still crashes for me.
You can extract all the XACT data with the SR2 modding tools:
https://www.moddb.com/games/saints-row-2/downloads/gibbeds-tools-for-sr2
Extract audio.vpp_pc and all the data will be there. Note that there are a lot of banks, so it's a very large test case.
Thanks.
My crash is due to the way the tear down occurs when libSDL cannot connect to a Pulse Audio server.
https://bugzilla.libsdl.org/show_bug.cgi?id=5256
I'm trying to get FAudio to compile and use gstreamer in proton but it seems I can't get the flags working properly. FAudio loads in wine but i get no sound on the saints row menu, and no voices in skyrim. Here's what I tried:
My only guess is that the rpaths need to be ripped out entirely, that's how my fnalibs builds work and dropping it into dist/lib64/ with the added plugins dropped into the plugin path worked for me.
still nothing. I tried all of these:
OK so, with this I now have skyrim voices and Ultimate Marvel vs Capcom menu select sounds:
And SR2 does not crash, but no music plays at the menu at all, and no audio/voices on the new game intro cutscene, so the same bug is still present. WMA decoding in other games via gstreamer is working as mentioned.
Did a quick
GST_DEBUG=6check:Looks like libav isn't prepared to handle this data, so it's out of FAudio's hands. I was able to verify that our data from FACT is otherwise valid, so at this point it's running source voices correctly but cannot be decoded without a fix from the plugin.
I have my build configured to build gst-libav, if we can figure out a patch to fix it i can test easily
Doing a bit of spring cleaning...
Closing as NOTOURBUG - WMA issues with libav should be filed with that project; at this point my only real data is going to come from protonmediaconverter so this is effectively abandoned.