ohimage / gmodmodules

Automatically exported from code.google.com/p/gmodmodules
0 stars 0 forks source link

[gm_bass] setvolume parameter is int but should be float #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
gm_bass.cpp line 160
int volume = gLua->GetInteger(2);

BASS expects a float value from 0.0 (0%) to 1.0 (100%) when setting 
channel volume.
gLua->GetInteger returns 1 if the value is set >0.6 and 0 if <0.5, so 
either full volume or complete silence.

Attached patch, tested and works :)

Original issue reported on code.google.com by schuman...@gmail.com on 4 Dec 2009 at 6:19

Attachments:

GoogleCodeExporter commented 9 years ago
Fixed and committed.

Original comment by AzuiSl...@gmail.com on 1 Apr 2010 at 5:01