Return-Path: Message-ID: Date: Wed, 16 May 2007 21:42:04 -0600 From: "Brad Midgley" To: "BlueZ development" In-Reply-To: <200705170207.52710.bluez-devel@huitl.de> MIME-Version: 1.0 References: <200705170207.52710.bluez-devel@huitl.de> Subject: Re: [Bluez-devel] headsetd has problems serving two applications at a time Reply-To: BlueZ development List-Id: BlueZ development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============1369352280==" Sender: bluez-devel-bounces@lists.sourceforge.net Errors-To: bluez-devel-bounces@lists.sourceforge.net --===============1369352280== Content-Type: multipart/alternative; boundary="----=_Part_19235_17133216.1179373324836" ------=_Part_19235_17133216.1179373324836 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Robert headsetd is written to allow a single application to use the headset at one time. it doesn't multiplex the mic or mix to the speaker. one of the two apps will fail to get exclusive access. it's basically a latency optimization but there's room for something like dmix or a sound server like pulse to make it more flexible. if skype is written such that input and output are separate file descriptors obtained through independent open() calls then it will also fail, even if they're in the same thread. that may be how it's written, especially if they let you choose one device for mic and another for speaker. Brad On 5/16/07, Robert Huitl wrote: > > > So why is headsetd blocking the second application while the first one is > running? ------=_Part_19235_17133216.1179373324836 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Robert

headsetd is written to allow a single application to use the headset at one time. it doesn't multiplex the mic or mix to the speaker. one of the two apps will fail to get exclusive access. it's basically a latency optimization but there's room for something like dmix or a sound server like pulse to make it more flexible.

if skype is written such that input and output are separate file descriptors obtained through independent open() calls then it will also fail, even if they're in the same thread. that may be how it's written, especially if they let you choose one device for mic and another for speaker.

Brad

On 5/16/07, Robert Huitl <bluez-devel@huitl.de> wrote:

So why is headsetd blocking the second application while the first one is
running?

------=_Part_19235_17133216.1179373324836-- --===============1369352280== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ --===============1369352280== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel --===============1369352280==--