• Status Unconfirmed
  • Percent Complete
  • Task Type Bug Report
  • Category Backend / Core
  • Assigned To No-one
  • Operating System All
  • Severity Low
  • Priority Very Low
  • Reported Version Development
  • Due in Version Undecided
  • Due Date Undecided
  • Votes
  • Private
Attached to Project: EDuke32
Opened by Jordon Moss - 2016-12-11

FS#49 - Setting effects volume to 56% or less kills certain sounds.

This bug started in revision 3997:

If you set your effects volume to 56% or less, certain sounds refuse to work. Glass breaking, toilet/hydrant water gurgling, breaking glass and bottles, etc... just go completely dead silent.

Jordon Moss commented on 2016-12-11 20:15
J commented on 2016-12-11 22:39

I took a quick look at this, in sounds.c, S_PlaySound3d() , it looks like the "distance" returned by FX_VOLUME is going above 255 too quickly.


- A "distance" of 255 is the max, any sound with a distance higher than 255 will be set to zero in formats.c/ MV_PlayVOC3D() before being passed to MV_PlayVOC().

- FX_VOLUME(x) is just (x * 255) / ud.config.FXVolume

ud.Config.FXVolume goes from 0 to 255.

- Note that if sound effects volume is set to 0 in the menu, sounds will be played at full blast

- I did some tests with this, here's some screenshots:

This test code was in S_PlaySound3d, before the call to FX_PlayAuto3D

- I attached the map I used for testing, it just has a TOILETWATER in it.


Available keyboard shortcuts


Task Details

Task Editing