Mail Archives: djgpp/1998/02/18/01:31:51
"Steve Patton" <leaphe AT pemail DOT net> writes:
> mixing part of the question. I don't believe averaging the values would
> provide correct results, in fact you might get a distorted sound. Because
> sound laws provide that if you have a +1 (doesn't matter what unit) and a +1
> wave, you should get a +2, averaging leaves you with a +1. Adding is the
> appropriate way. EXCEPT, that you are most likely dealing in unsigned
Hmm, the average of a and b is (a+b)/2, the sum is a+b. The only difference
is, that the first value is half the second one. So averaging gives you the
same result as adding, except it is half the volume. The averaging version is
not as loud as the adding one bat has less problems with value overruns.
Ciao,
Till
- Raw text -