Sound-playing things warped to player have jumpy audio

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49238
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Sound-playing things warped to player have jumpy audio

Post by Graf Zahl »

I decided to close this because with an attenuation of 20 this is not fixable with ACS using another numeric system than the rest of the engine.
User avatar
randi
Site Admin
Posts: 7749
Joined: Wed Jul 09, 2003 10:30 pm
Contact:

Re: Sound-playing things warped to player have jumpy audio

Post by randi »

User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49238
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Sound-playing things warped to player have jumpy audio

Post by Graf Zahl »

Ah, that's why all my attempts to solve this at the higher level had so bad results...
User avatar
Nash
 
 
Posts: 17501
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: Sound-playing things warped to player have jumpy audio

Post by Nash »

Thank you Randi!

I noticed that the change is only in fmodsound.cpp. Would this change propagate to OpenAL as well or do I have to fix that separately?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49238
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Sound-playing things warped to player have jumpy audio

Post by Graf Zahl »

The OpenAL backend has no concept of a 'head relative' sound, so it may behave differently. Have you tested there, too?
User avatar
Nash
 
 
Posts: 17501
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: Sound-playing things warped to player have jumpy audio

Post by Nash »

With a homebrew build of ZDoom (generated with FMod disabled in CMake) and running the audio in OpenAL mode, the example file still exhibits the broken behavior. Checkout is the latest (with the fixes Randi just commited). So it looks like in OpenAL, this bug still happens...

No problems with FMod, the bug has been fixed for that path.
User avatar
Chris
Posts: 2978
Joined: Thu Jul 17, 2003 12:07 am
Graphics Processor: ATI/AMD with Vulkan/Metal Support

Re: Sound-playing things warped to player have jumpy audio

Post by Chris »

Would it instead be possible to have an explicit HeadRelative flag for such sounds, rather than just guessing if it's "close enough"? There was a similar issue previously where even though the sound and listener positions were set the same, because the values were so large some of internal transforms applied to the sound position was creating floating point rounding errors on some systems/compilers, which were larger than the approximately-zero allowance of 1.19209290e-07 (this was fixed on OpenAL Soft's side by changing to doubles instead of floats for certain calculations, thereby reducing the rounding error, but having a clear indication of which sounds should be head-relative would be a better fix).

I can otherwise make a similar fix for the OpenAL backend as was applied to the FMOD backend, though it feels kludgy.
Post Reply

Return to “Closed Bugs [GZDoom]”