From: Takashi Iwai Subject: Re: [Ekiga-devel-list] Pls don't require exclusive Alsa audio device access, use snd_pcm_dmix_open () Date: Wed, 28 Nov 2007 17:22:13 +0100 Message-ID: References: <471FE2A7.9080309@googlemail.com> <47201223.5050304@googlemail.com> <474D2F8A.9090001@googlemail.com> <474D90EB.5030400@googlemail.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id 86EAB24B53 for ; Wed, 28 Nov 2007 17:58:03 +0100 (CET) In-Reply-To: <474D90EB.5030400@googlemail.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: thomas.schorpp@googlemail.com Cc: alsa-devel@alsa-project.org, Ekiga development mailing list List-Id: alsa-devel@alsa-project.org At Wed, 28 Nov 2007 17:01:47 +0100, thomas schorpp wrote: > > > +1 Dmix should not be enforced... this can be handled at a lower > > level.... e.g. with dmix configured in alsa config or by using > > pulseaudio instead of dmix (my preferred solution so I can switch from > > my internal speakers to my usb headset should I plug it in mid-call). > > > > Col. > > alsa docs say dmix config files are no longer neccessary? The behavior depends on the name string passed to snd_pcm_open(). If you open the PCM with "default", the alsa-lib takes an approriate configuration for multi-playback and automatic conversions. But, if app opens with other strings like "hw" or "plughw", then it means that it's an exclusive access. dmix cannot be involved with that. Takashi