Re: [AD] support for mod files

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


On 2010-04-05, Thomas Fjellstrom <tfjellstrom@xxxxxxxxxx> wrote:
> On April 4, 2010, Matthew Leverton wrote:
> > On Sun, Apr 4, 2010 at 9:44 PM, Peter Wang <novalazy@xxxxxxxxxx> wrote:
> > > I suggest _modmusic, _modaudio or _modfile.
> > 
> > I've committed it as modaudio.
> > 
> > The basic functionality has been tested on Linux. I'll test it out on
> > Windows and also check out some of the more advanced stream
> > operations.
> > 
> > Right now ex_stream_file and ex_stream_seek are both dependent on
> > DUMB. What needs to be done to make the examples conditionally load
> > DUMB (etc)? Is there any official way to query if addons are installed
> > either at runtime or compile time?

You could use the SUPPORT_FLAC/* variables to add -D flags when
compiling the examples.  See the add_definitions command in CMake.

> Might be aloud to add ALLEGRO_HAS_* defines for DUMB and/or MODAUDIO. I 
> can't see it hurting anything.

If you were to do that, name it something else to keep it distinct from
ALLEGRO_HAVE_<foo>, which is defined if some third party "foo" was
detected at configure time, whether or not the user wants to make use of
it.

We also have ALLEGRO_CFG_* constants, but those are internal and users
should not be encouraged to use them.

Peter




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