dsoal icon indicating copy to clipboard operation
dsoal copied to clipboard

Mafia 1 - strange reverb feedback loop in some locations

Open Lrflx opened this issue 2 years ago • 8 comments

During my last playthrough I noticed that in several locations something strange definitely was happening. Easiest to check is in prison tower, with alchemy there's a slight humming trail going on for couple seconds after every gunshot. And with dsoal it just keeps going on and on instead, practically indifinetiley and doesn't stop even in main menu. Tested it with reverb boost setting and it does change reverb in general, but doesn't have any audible effect on that feedback loop humming. Mafia.zip

Lrflx avatar Sep 08 '23 09:09 Lrflx

With the last git?

mirh avatar Sep 08 '23 11:09 mirh

Yes, just did it and same thing is happening there

Lrflx avatar Sep 08 '23 17:09 Lrflx

FWIW, there is newer code in the C++ rewrite branch (although I don't expect EAX/reverb behavior to be much different; and that branch is currently missing a few features like capture/duplex operation and WRITEPRIMARY support, that still need to be reimplemented).

I do need to find some way to log the EAX parameters being set, in a way that doesn't significantly impact performance when not logging. The reverb gain shouldn't be significantly different, nor should the decay tail, so it'd be helpful to see what EAX property values are being set.

kcat avatar Sep 08 '23 17:09 kcat

Ok, I'll be glad to retest it whenever it comes out. To be honest I'm not sure if it's even a reverb, sounds more like reflections, don't know for sure if EAX 3 can to it.

Lrflx avatar Sep 08 '23 17:09 Lrflx

Are you able to provide a recording of it happening? Preferably of both ALchemy and DSOAL for comparison.

kcat avatar Sep 08 '23 18:09 kcat

Of course. Some additional clipping got there during capture, it wasn't in game originally Mafia.Alchemy.DSOAL.zip

Lrflx avatar Sep 08 '23 18:09 Lrflx

Compiled the C++ rewrite + latest OpenAL Soft and the issue is still there. It actually is reverb because cancelling it by setting the boost value low also affects the effect.

It's not in just some locations, however, but most of them, only in most the effect is quiet enough compared to the rest of the sounds not to be very disturbing. Load anything, pause the game (stops all other sounds), increase speaker volume, the ominous hum loop is there. If you play longer, some of the effects layer up (more hum), some are terminated when you leave the location [no loads in-between]). The loop continues even when loading the main menu (which is just another game scene), and only resets if you load a different scene.

If there's anything to test in the future, I'll be glad to do so.

princhonzik avatar Aug 02 '24 12:08 princhonzik