rvitorper / quake2-gwt-port

Automatically exported from code.google.com/p/quake2-gwt-port
GNU General Public License v2.0
0 stars 0 forks source link

All sounds have the same volume level #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Ideally, the sound volume would depend on the distance.
At least, we should not play sounds that are too far away.

Original issue reported on code.google.com by stefan.haustein on 10 Mar 2010 at 6:10

GoogleCodeExporter commented 9 years ago
You'd just set the volume property on the audio tag (assuming you're doing 
audio like I 
think you are), right?

Original comment by megazzt on 2 Apr 2010 at 10:44

GoogleCodeExporter commented 9 years ago
Actually, the shipped version includes emulation of the OpenAL Inverse Distance 
Clamped 
distance model, and sets gain accordingly. See the updateState() method in 
http://code.google.com/p/quake2-gwt-
port/source/browse/src/jake2/gwt/client/WebALAdapter.java

Original comment by cromwell...@gmail.com on 3 Apr 2010 at 3:47