GPSnoopy / BelgianChocolateDuke3D

Chocolate Duke Nukem 3D
35 stars 9 forks source link

[Bug] inacurrate sound interpolation #16

Open SpelzR2 opened 1 month ago

SpelzR2 commented 1 month ago

As with version 2022.07.27 the sound interpolation isn't quite faithful to the DOS version. The sound effects in ChocolateDuke3D sound harsher / more pronounced in the higher frequencies than in the DOS version. Other source ports like Raze or Eduke32 suffers from the same problem. I've made samples of nearly every weapon to compare.

DOS sound effects ChocolateDuke3D sound effects (recorded with Eduke32, sounds identical to ChocolateDuke3D)

GPSnoopy commented 1 month ago

On top of the comments in #15 , IIRC, one big change compared to the DOS version is that SDLaudio can run at 16bit 44kHz. I might be misremembering, but that would definitely cause the audio to sound different depending on how SDL interpolates, and/or the OS sound system/libraries.

SpelzR2 commented 1 month ago

DOS Duke is also able to use 16bit audio with 44khz (it is selectable in the Duke3Dsetup). I've checked DosBox-X configurations and then configured Duke3D with Soundblaster, set to 16bit and 44khz with max. voices. It seems to be connected to SDLAudio (or in Razes case to OpenAL) which handles the interpolation in a different way. I believe Eduke32 / Rednukem also uses SDL and it has the same problem.

GPSnoopy commented 1 month ago

I stand corrected. Thanks for all the details 👍

SpelzR2 commented 1 month ago

Just for the sake of completeness, I've taken screenshots from the DOS setup of Duke3D. I hope this helps somehow:

setup1 setup2 setup3 setup4 setup5