From: Till Harbaum Newsgroups: comp.os.msdos.djgpp Subject: Re: Audio recording and mixing Date: 17 Feb 1998 13:23:24 +0100 Organization: TU Braunschweig, Informatik (Bueltenweg), Germany Lines: 15 Distribution: world Message-ID: References: <34E10439 DOT 17FF AT netvision DOT net DOT il> <6bu0g2$p5j AT bgtnsc02 DOT worldnet DOT att DOT net> NNTP-Posting-Host: flens.ibr.cs.tu-bs.de Mime-Version: 1.0 (generated by tm-edit 7.106) Content-Type: text/plain; charset=US-ASCII To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk "Steve Patton" 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