From owner-freebsd-bluetooth@freebsd.org Fri Oct 9 09:55:34 2015 Return-Path: Delivered-To: freebsd-bluetooth@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 636B59D0EDC for ; Fri, 9 Oct 2015 09:55:34 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (mail.turbocat.net [IPv6:2a01:4f8:d16:4514::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2A0B56D1 for ; Fri, 9 Oct 2015 09:55:34 +0000 (UTC) (envelope-from hps@selasky.org) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 3AE531FE022; Fri, 9 Oct 2015 11:55:31 +0200 (CEST) Subject: Re: A2DP on FreeBSD, part N To: Lars Engels , Iain Hibbert References: <2669086.KH7QR9g2Oe@thinkpad> <20151009092116.GA43663@e-new.0x20.net> Cc: Maksim Yevmenkin , Maxim V FIlimonov , "freebsd-bluetooth@freebsd.org" From: Hans Petter Selasky Message-ID: <56178F78.3030703@selasky.org> Date: Fri, 9 Oct 2015 11:57:12 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <20151009092116.GA43663@e-new.0x20.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Oct 2015 09:55:34 -0000 On 10/09/15 11:21, Lars Engels wrote: > On Fri, Oct 09, 2015 at 10:15:39AM +0100, Iain Hibbert wrote: >> On Thu, 8 Oct 2015, Maksim Yevmenkin wrote: >> >>> On Wed, Oct 7, 2015 at 12:33 PM, Maxim V Filimonov wrote: >>>> Hi everyone, >>>> >>>> I found this link: https://mail-index.netbsd.org/netbsd-users/2015/09/14/msg016883.html >>>> >>>> As you might notice from the URL, it's about A2DP on NetBSD. I heard that A2DP >>>> requires mostly userland tools, so might anyone look at it and see if it will >>>> actually work with FreeBSD? I didn't manage to compile that, and I don't have >>>> the skills to make it work, unfortunately. Is it even portable to FreeBSD? >>> >>> bluetooth uers pace part should be portable (relatively straight >>> forward). the audio drivers part will require a bit more work, but >>> still doable. >> >> There is still a lot of work to do on this program in any case.. it can >> currently play an audio file to an A2DP receiver (I have a pair of >> headphones, and a standalone speaker). It does this by piping stdin (or >> reading from a .WAV file) into an RFCOMM connection so that should >> basically work on FreeBSD anyway >> >> There is no real support for audio devices at this time, but I have >> encouraged Nathaniel to implement a method where it could use the backend >> of a pad(4) device so that the system would see an audio device and you >> could use your normal audio player. I think this will need extensions to >> pad(4) in any case as that is too simple. >> > > Maybe Hans-Petter (CC'ed) is also interested, as he authored or ported > or uaudio driver. > Hi, I recommend using libcuse for this. I.E. make a daemon in userspace which handle everything. See: svn --username anonsvn --password anonsvn \ checkout svn://svn.turbocat.net/i4b Search for "virtual_oss*" --HPS