[AD] get_volume()

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


Hi!

Allegro has lots of set_xxx functions, but only a few related get_xxx()
functions, so whenever I want to know such a value I have to include the
internal headers, which is kinda strange. If nobody objects, I'd a a
couple of methods like this one (should be in sound.c, line 760):

/* get_volume:
 *  Returns the volume values that were set by the last call
 *  to set_volume.
 */
void get_volume(int *digi_volume, int *midi_volume)
{
    *digi_volume = _digi_volume;
    *midi_volume = _midi_volume;
}

They won't eat much space, and would be greatly appreciated.

I'd also like to propose a way to get information about the currently
"installed" features, like is_allegro_installed(), is_sound_installed(),
is_sound_input_installed(), is_mouse_installed(), is_keyboard_installed(),
etc.
While it won't be that crucial for the endusers, developers of add-ons need
these informations quite often.

I'd also update the documentation accordingly. I'm just not sure how I am
supposed to make diffs, w/o CVS access?

Best regards,
Lenny




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