Re: [AD] Allegro's DX mixer and the mixer core.

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


On Mon, Mar 22, 2004 at 01:05:39AM +0000, Chris wrote:
> thought about 'int al_get_mixer_frequency(void);' though I'm not sure 
> the al_ should be there since I've yet to see an Allegro function or 
> variable use it.

Yes. Drop the al_. Allegro, at least Alllegro 4, is unprefixed. Prefixing new
symbols only makes the API less clean.

> I would also make functions to be able to get the mixer 
> buffer length, number of voices, number of channels, and bit-depth, too.

What surprises me is that these aren't there already! I've never had reason
to directly check though.

Incidentally, for this type of thing, the config file hook system could
(maybe even should?) be used.

> A simple fix would be to have the DX mixer driver simply 
> initialize Allegro's mixer with the parameters the DX mixer is set with, 
> but just not use it. This way, the DX mixer's settings are mirrored in 
> Allegro, where they can be simply gotten from.

On the one hand, this sounds simple and reasonable. On the other hand, it also
feels like a hack. If this is done for the DX mixer, then it should probably
be done for the others as well. And of course this behavior should be
documented.

Evert




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