[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
- To: alleg-developers@xxxxxxxxxx
- Subject: Re: [AD] get_volume()
- From: guilt <karthikkumar@xxxxxxxxxx>
- Date: Wed, 2 Mar 2005 18:09:09 +0530
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=Kr1SBxwnMeBXYBIgl9965og6Ju7vynPvtZFEeDuPnPt5cfslywmURUExfWfWNVZ7Z7eSpzP/jvFRj64wPq3twwxruqm4nWK2s6Gr+Tw2ITxEu/pih2LzIoKI7Q8D8qJA9AV46bH8Ze4MctViS6cK+ysOt7XRVQ9YkXmj05hZp20=
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