Re: [AD] Sound API

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


On May 17, 2004 02:02 pm, Ben Davis wrote:
> On Monday 17 May 2004 20:57, Thomas Fjellstrom wrote:
> > No, just what I did in my audio lib. if you have 1 voice, that voice gets
> > all the volume, you have two, each is halved. have 3, each gets a third.
> > etc. Is that wrong? (I've only tested it with 2 anyhow...)
>
> Well, if you request eight voices (the default), or any power of two above
> that, then Allegro's existing behaviour will offer you DOUBLE the volume
> your proposal would offer.
>
> If you even want to be sure that having all samples panned to the same side
> won't cause any clipping, then you'll have to go for a QUARTER of what
> Allegro offers.
>
> Are you happy with that? :)
>
> Ben
>

You know me, I'm no DSP guru. I just coded what I thought would work.. and 
besides the mixer part was an after thought. it was originally for 1 stream 
at a time ;)

-- 
Thomas Fjellstrom
tfjellstrom@xxxxxxxxxx
http://strangesoft.net




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