From alsa-devel-owner@alsa.jcu.cz  Sun Feb 14 07:28:36 1999
Received: from screech.cs.alfred.edu (IDENT:root@screech.cs.alfred.edu [149.84.148.201])
	by marvin.jcu.cz (8.9.1a/8.9.1) with ESMTP id HAA20093
	for <alsa-devel@jcu.cz>; Sun, 14 Feb 1999 07:26:42 +0100
Received: from Screech (lansdoct@Screech [149.84.148.201])
	by screech.cs.alfred.edu (8.8.7/8.8.7) with ESMTP id BAA04155
	for <alsa-devel@jcu.cz>; Sun, 14 Feb 1999 01:27:36 -0500
Date: Sun, 14 Feb 1999 01:27:36 -0500 (EST)
From: "Christopher T. Lansdown" <lansdoct@screech.cs.alfred.edu>
To: "Alsa Developer's List" <alsa-devel@jcu.cz>
Subject: Mixing
Message-ID: <Pine.LNX.4.05.9902140125140.3906-100000@screech.cs.alfred.edu>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Reply-To: alsa-devel@alsa.jcu.cz
Sender: alsa-devel-owner@alsa.jcu.cz
Precedence: list

Hello,
	I'm in the process of writing a music library, targeted at games.
On of it's functions will be mixing different sounds (PCM streams).  What
is the right way to mix PCM streams?  Adding the samples, averaging them,
or something else?  Assume identicle sample rate and stereo.
	Also, if there is more than one way, what way produces the best
quality sound?  What's the fastest method that produces acceptable
results?  Thank you very much.
	-Chris

lansdoct@cs.alfred.edu
"If I had had more time I would have written you a shorter letter." - Pascal
Linux Programs: http://cs.alfred.edu/~lansdoct/linux/
Linux - Get there. Today.


