Re: [AD] support for mod files

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


On April 5, 2010, Peter Wang wrote:
> 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.

I meant ALLEGRO_HAVE_<foo> and I don't see the problem with adding one to 
allegro for DUMB and MODAUDIO since he wants it to make one of allegro's own 
examples optionally depend on it.

> 
> We also have ALLEGRO_CFG_* constants, but those are internal and users
> should not be encouraged to use them.
> 
> Peter
> 
> -------------------------------------------------------------------------
> ----- Download Intel&#174; Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev


-- 
Thomas Fjellstrom
tfjellstrom@xxxxxxxxxx




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