NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

bta2dpd - advanced audio distribution profile bluetooth daemon IMPROVED



Hi,

Call for testers of the next installment of bta2dpd.

It allows you to stream music or pad(4) output to bluetooth stereo headphones 
or speakers using the advanced audio distribution profile (a2dp).

NEW!!! bta2dpd can be used also as an audio sink, so you can stream music from 
your phone/computer etc. to a file or audioplay to hear it on your computer 
speakers.  See below.

This program will work on NetBSD-current, 7 and 6.

To compile:
extract the archive from 
ftp://ftp.NetBSD.org/pub/NetBSD/misc/nat/bta2dpd-v62.tgz

change to the extracted directory and make(1).
ie. 
$cd bta2dp-bsd-v62
$make.

pair up your bluetooth headphones/speakers:
#btpin -P .... -a bluetooth-device-address

And your ready to go...


To use this deamon requires 44100Hz stereo signed 16 bit little endian wav 
files or the pad(4) device.

$./bta2dpd -a bluetooth-device-address my.wav
or 
$./bta2dpd -a bluetooth-device-address /dev/pad0

Most of the options change the way audio is encoded and are not necessary 
however if you have skipping audio or no audio try the following:

./bta2dpd -a bluetooth-device-address -M 300 my.wav
or 
./bta2dpd -a bluetooth-device-address -M 300 -B 36 my.wav

The -M option limits the maximum amount of data sent to the bluetooth device 
per transaction, if you still have problems try an MTU of 700 (-M 700) and 
work your way down by hundreds.

The -B option limits the bitpool value used for encoding the stream and 
although the daemon calculates the bitpool value it might not work in all 
cases.

NEW!!! It can also be used as an audio sink:
./bta2dpd -K -r 44100 | audioplay -f -e linear -P 16 -c 2 -s 44100 --

As an audio sink it is possible to specify an address to receive connections 
from with -a. i.e:

./bta2dpd -K -r 44100 -a myphone | audioplay -f -e linear -P 16 -c 2 -s 44100 
--

I found in order for my phone to connect to bta2dpd as an audio sink I needed 
the most recent version of sdpd(1) and had to set a pin code for my phone (see 
btpin(1)) and had to start bta2dpd as a sink with -K before pairing.


Best regards,

Nat.



Home | Main Index | Thread Index | Old Index