On Sun, 15 May 2005 11:42:03 -0400, Ken Noland wrote:
> Anybody know any good sound lists or really great articles on
> software sound mixing?
Try a good book on sound programming, several of them exist. Off the
top of my head is A Programmer's Guide to Sound by Kientzle.
> an addition to the two sound samples produces errors when the sound
> wraps around the limitations of a signed short.
Yes. Welcome to sound programming =3D)
> Clamping that
> doesn=92t work either since sound is measured in a difference of
> samples.
Clamping doesn't work, period, since you end up clipping and
introducing distortion as a result.
> Doing an average on the two sound samples causes sounds to
> be more quiet then they should naturally be, so is there a better
> way?
Well, an average is just doing the addition and then rescaling the
results, which isn't always going to help you and just raises the
noise floor.
There is no easy way around this. It's a large, complicated topic,
but the simplest answer (until you learn about the intricacies
involved) is "use quieter sounds". That way when you sum a bunch of
them, they hopefully won't clip, but even that's not a guarantee.
Some fancier stuff mixes in floats and rescales on the fly, or applies
real-time compression/limiting, but that starts getting into the realm
of REAL complicated for someone without sound programming experience.
Brian
|