Notice: A non well formed numeric value encountered in /var/www/bugs.eduke32.com/includes/class.flyspray.php on line 105 Notice: A non well formed numeric value encountered in /var/www/bugs.eduke32.com/includes/class.flyspray.php on line 105 Notice: A non well formed numeric value encountered in /var/www/bugs.eduke32.com/includes/class.flyspray.php on line 105 FS#49 : Setting effects volume to 56% or less kills certain sounds.

EDuke32

  • Status Unconfirmed
  • Percent Complete
    0%
  • 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: http://dukeworld.duke4.net/eduke32/synthesis/old/2013/20130807-3997/ChangeLog.txt

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.

Notes:

- 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: http://imgur.com/a/W3NYY

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.

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing