Re: [AD] set_volume() is evil

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


> Or what Bob suggested in a later post, which I prefer. Very few people will
> have used set_volume() with the intention of controlling the global volume,
> and those few can fix it quite easily.

Ok, probably makes sense nowadays. Given that everyone seems to agree with 
you, I can't help but doing the same thing :-)

> Let's finally note that the 'hardware mixer' part of set_volume()'s
> specification came from DOS days, when it was perfectly reasonable to set
> the global volume because no other programs would be running. (Well, you
> might be playing an audio CD, but Allegro doesn't set the global-global
> volume, only the digital global volume.)

Then set_volume() and set_hardware_volume() ?

> Games typically use many voices, and create them from many different parts
> of the program. It's tiresome to retrofit volume scaling code to every one,
> when the program is advanced. Allegro will do this volume scaling for the
> user.

Agreed.

-- 
Eric Botcazou



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