Re: [AD] get_volume()

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


> >>I think, we should just add a function like this:
> >>
> >>AL_DRIVER_INFO *al_get_driver_info(driver), where driver can be:
> >>
> >>AL_SYSTEM_DRIVER
> >>AL_GFX_DRIVER
> >>AL_DIGI_DRIVER
> >>AL_JOYSTICK_DRIVER
> >>AL_TIMER_DRIVER
> >>AL_MIDI_DRIVER
> >>and so on..
> >>
> >>And struct AL_DRIVER_INFO
> >>{
> >>    AL_ID id;
> >>    char const *name;
> >>    char const *description;
> >>    possibly more info?
> >>}
> >>
> >>That way, we need no separate is_gfx_driver_installed and
> >>get_gfx_driver_id functions, which, when done for all drivers, would
> >>clutter the API quite a bit.
> >>    
> >>
> I could do the get_xxx functions and event the al_get_driver_info() 
> function duringthe next week
> (I hope). I think it would be great to have this stuff in allegro 4.2 - 
> so I'm not sure if I should use
> the al_ prefix?

For 4.2, no, it shouldn't use the al_ prefix. Do you have a concrete 
example on the `possibly more info' you want to return?

Evert




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