www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/02/18/01:31:51

From: Till Harbaum <harbaum AT ibr DOT cs DOT tu-bs DOT de>
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: <ykssopio1xf.fsf@flens.ibr.cs.tu-bs.de>
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)
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

"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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019