[AD] set_volume

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Hmm strange.  This is interesting:

set_volume(255, -1);  //sets volume to 100%
set_volume(0, -1);    //sets volume to 0%
set_volume(64, -1);   //sets volume to 0%
set_volume(128, -1);  //sets volume to 0%
set_volume(192, -1);  //sets volume to 50%

Interesting behavior for set_volume, n'est pas?

I wonder if this is related to the problem that my sounds seem to get quiet 
MUCH faster than I think they would have when I play them with play_sound 
volumes under 192.

I tried to divide the sound volume in wdsound.c by 255.0 instead of 255 
thinking maybe it was an integer thing (it looked like it was trying to 
make a fraction, in which (num<255)/255 == 0), but that didn't help.

Gillius



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/