URL:
<http://gna.org/patch/?822>
Summary: Sound patch fixes
Project: Warzone Resurrection Project
Submitted by: buginator
Submitted on: Thursday 11/01/2007 at 06:16
Category: Fix
Priority: 7 - High
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
The included patch fixes a few things, all sound related.
1)Makes it so the volume data in data/audio/audio.cfg are really used.
Each sound effect has this format:
/* audio format: audio [filename] [oneshot/loop] [volume 0-100] [range] */
On both 2D & 3D sounds, the volume is read, then divide that value by 100.
This makes it in the range of openAL 0.0-1.0.
Then we take that volume, and multiply it by whatever the user has wz sfx
volume set to. (Which also is in a range of 0-1.0).
It then is computed volume * user volume, and we pass this to openAL.
NOTE, you may notice the range parameter above. At this point in time, that
isn't calculated. They all seem to be set to 1800. I was not sure of units,
and also right now, we do our own calculation for distance, and do not even
use the openAL models. (alDistanceModel(AL_NONE))
2) The blasted oilwell sound is *much* louder than anything else. So I
modified the audio.cfg to tone it down. Also did the same for the power
plant spark. Now that we can change stuff in this file. :)
3) Fixed the crash in skirmish games on windows (only?). This is bug #9923 &
bug #9279 and also possibly bug #9927.
Fixed by adding a flag to mark the object is set to die. This way it don't
reference a invalid pointer and crash.
---Trivial fixes
4) Fixed a compile issue for MSVC do to a "STATIC_ASSERT" being used after
code block, which isn't legal C98. Why use a STATIC assert here instead of a
normal assert?
5)Fixed text for when paused, you can read it all now.
(This really should be computed from the font width, but I didn't want to fix
this one line with tons more code. And Per, the fonts you posted in forums is
MUCH nicer than what we use now.)
--Buginator
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Thursday 11/01/2007 at 06:16 Name: soundfix.diff Size: 8kB By:
buginator
<http://gna.org/patch/download.php?file_id=3118>
_______________________________________________________
Reply to this item at:
<http://gna.org/patch/?822>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Warzone-dev mailing list
[email protected]
https://mail.gna.org/listinfo/warzone-dev