kcat / dsoal

A DirectSound DLL replacer that enables surround sound, HRTF, and EAX support via OpenAL Soft
GNU Lesser General Public License v2.1
388 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 months 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 months 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 months ago

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

ThreeDeeJay commented 2 months 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

sashaaaaaaaaa commented 4 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?

sorry for the delay but on latest-c++-rewrite as of today (DSOAL r557@14a8ca5) I get a crash after the Namco logo. On DSOAL r556@afe57915 it doesn't crash but I don't get EAX.

kcat commented 4 weeks ago

sorry for the delay but on latest-c++-rewrite as of today (DSOAL r557@14a8ca5) I get a crash after the Namco logo. On DSOAL r556@afe57915 it doesn't crash but I don't get EAX.

That's odd. From commit afe57915 to commit 14a8ca5 is just one commit, which just adds setting AL_METERS_PER_UNIT for the distance factor.

Hiradur commented 3 weeks ago

I experience no issues running the game in Wine with DSOAL 14a8ca579b20137e10ced47987a34ed8de9f8da6 and OpenAL Soft ebd2f0f1543186c4b33403c390171d01ee15542e. Voice count is set to 64 and EAX is enabled.