Re: [AD] get_volume()

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


Well, regards this, install_sound() etc do return the values at any
point of time, so I would remind you that having separate
is_sound_installed() functions will lead to inconsistency between
threads and calls. the scope and purpose of these functions must be
left to the user, and not the library.

On Tue, 1 Mar 2005 13:10:53 +0100 (CET), Lennart Steinke
<lst@xxxxxxxxxx> wrote:
> 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
> 
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> --
> https://lists.sourceforge.net/lists/listinfo/alleg-developers
> 


-- 
Karthik
http://guilt.bafsoft.net




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