Re: [AD] support for mod files

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


On April 5, 2010, Thomas Fjellstrom wrote:
> On April 5, 2010, Elias Pschernig wrote:
> > On Mon, 2010-04-05 at 06:59 -0600, Thomas Fjellstrom wrote:
> > > Well whatever. Maybe a better route is being able to check at run
> > > time if a given format is loadable? al_audio_can_load(".mod") ?
> > 
> > Won't work right now because al_init_modaudio_addon() must be called to
> > add ".mod" to the list. However, it would work if we do it like in the
> > image addon - that is have only one al_init_acodec_addon(), which has
> > compile-time check for the included formats. I forgot why we did things
> > differently for image and audio formats originally - but it seems like
> > the better way to me.
> 
> I forgot about the init function.. If only there was a 100% reliable way
> to get the adons to register themselves automatically.

nevermind, that wouldn't help, you'd still have to include the header since 
this adon has some extra api calls.

-- 
Thomas Fjellstrom
tfjellstrom@xxxxxxxxxx




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