kcat / dsoal

A DirectSound DLL replacer that enables surround sound, HRTF, and EAX support via OpenAL Soft
GNU Lesser General Public License v2.1
375 stars 50 forks source link

Street Racing Syndicate crash #76

Open sashaaaaaaaaa opened 1 year ago

sashaaaaaaaaa commented 1 year ago

Game crashes before you get to the main menu. DSOAL log attached. dsoallog.txt

sashaaaaaaaaa commented 1 year ago

game never even starts with dsound backend on openal soft

kcat commented 1 year ago

This looks really odd. It creates a device and seems to play/stream something, then closes the device. Then it starts doing things on another device it never seemed to open. I do notice some of the logs are getting chopped off and mixed up from different threads, so maybe some of the traces for that got swallowed up. Though either way, it seems to be setting the listener position/velocity/orientation deferred all the time followed by committing deferred settings. It does this a bunch of times just fine, but then starts throwing an error saying there's no context, for no apparent reason.

I'll need to figure out a way to stop the trace lines from getting overwritten so I can get a better view of what's going on.

Hiradur commented 2 weeks ago

Running the game in Wine on Linux, I have no problems with recent DSOAL (c++-rewrite branch) and OpenAL Soft builds. EAX works as well. @sashaaaaaaaaa Could you retest with newer builds?

ThreeDeeJay commented 2 weeks ago

game never even starts with dsound backend on openal soft

btw I think using dsound backend in DSOAL does that because it gets into an infinite loop since DSOAL would try to wrap itself or something. So on Windows it's better to just use the default (wasapi). Not sure if there's a better backend in Wine if that's what you're using though

mirh commented 2 weeks ago

There is no reason it should perform any different than in windows configured the same.

ThreeDeeJay commented 2 weeks ago

image https://github.com/ThreeDeeJay/dsoal/releases/tag/latest-c%2B%2B-rewrite

Also if you wanna verify dsound output, try running this executable (it will likely crash), then edit alsoft.ini and set drivers=wasapi or just drivers= (on Windows it'll still use WASAPI but maybe OpenAL Soft detects a better system backend on wine? DSOAL_dsound_test.zip