Re: [AD] proposed changes to sound API

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


On 17-Dec-08, at 12:02 AM, Matthew Leverton wrote:
On Tue, Dec 16, 2008 at 10:38 PM, Evert Glebbeek <eglebbk@xxxxxxxxxx> wrote:
Let's not forget to put al_get_<object>_<datatype>(<property>) ->
al_get_<object>_<property> (eg, al_get_sample_frequency) to the TODO
list; I don't think anyone disagrees with that.

Is that to replace the current al_get_sample* or to supplement them?

Opinions are divided on the subject. ;)

It may be easiest to simply have al_get_sample_frequency() call al_get_sample_float(frequency), at least at first. It's certainly what I would start with.

Personally, I can't really say I see an advantage in the current API at all. Well, there is one: getting a large number of properties can be done with a loop instead of several lines of source code. I don't think there are enough properties to make that worthwhile.

Evert




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