From mboxrd@z Thu Jan 1 00:00:00 1970 From: Florian Schmidt Subject: Re: hardware channel mixing Date: Fri, 3 Sep 2004 15:58:01 +0200 Sender: alsa-devel-admin@lists.sourceforge.net Message-ID: <20040903155801.1ae48548@mango.fruits.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: pat@dumaisnet.ca Cc: Clemens Ladisch , alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org On Fri, 3 Sep 2004 09:15:06 -0400 (EDT) Patrick Dumais wrote: > > Thanks a lot, I've been looking for that information. > > So this would mean that the only solution would be to snd_pcm_open() a > device for each sound file that I want to play simultenaously? If you are programming an app that needs to play several sounds at once, it is a very bad idea to rely on the hardware provifding hw mixing. Most SC's do not provide hw mixing. So the solution really is to do the mixing yourself before sending the sound to the soundcard [mixing sounds is pretty trivial -> add them. only take care about the headroom]. OTOH: if you write this app only for yourself and you know you will always use a SC with hw mixing, feel free to use snd_pcm_open for every sound you play.. flo ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click