linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Bluez-devel] Alsa plugin for A2DP daemon
@ 2006-07-07 15:59 Frédéric DALLEAU
  2006-07-07 19:18 ` Brad Midgley
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Frédéric DALLEAU @ 2006-07-07 15:59 UTC (permalink / raw)
  To: bluez-devel

Hi all,

    I've been working with Brad's a2dp plugin for some time now. I =

hacked it with the idea of having an ipc alsa plugin and an audio daemon =

and guess what : today, I have something working pretty well. It fully =

separate the application and the headset (tcp used for ipc). Thus, you =

can let the application play audio while having the heaset switched off. =

Switch on the headset and you will start hearing sound. It also permit =

having lots of applications using the headset at a time and yes, sound =

is mixed. You can crash and restart the daemon without interrupting the =

app. Reverse is possible too.
    Drawbacks : some ticks in the sound, Tcp may give additionnal burden =

but for now it seems far from being cpu intensive (if you consider Xeon =

as being a representative cpu ;).

    Brad, to do this, I only modified file Makefile.am and added new =

source code files in the 'alsa-plugins' folder. It will setup next to =

the original alsa-plugin. Is is called pcm_a2dpd.c. The archive also =

contain a modified version of pcm_a2dp.c that receives connections on =

the control socket.

    You can get a full archive there http://fdalleau.free.fr/btsco.tar.gz
     I would love to have someone try it on an ARM platform. Next step =

is volume control!

    Hope you like it! Documentation follow

    Fr=E9d=E9ric




To build
-----------
    bootstrap && ./configure --enable-alsaplugin && make && sudo make =

install
    You may have to create a symbolic link as I had : sudo ln -s =

/usr/local/lib/alsa-lib  /usr/lib/alsa-lib


To run
----------
    Your headset must be paired.
    create .asoundrc if you do not have one that contain the following =

(don't forget backup previous one)
pcm.!default {
        type a2dpd
        bdaddr "00:11:22:33:44:55"
}

pcm.a2dpd {
        type a2dpd
        bdaddr "00:11:22:33:44:55"
}
    This bluetooth address is needed but not used. Put something that =

looks like a bluetooth address.

    restart alsa with : /etc/init.d/alsa-utils restart

    start your favorite media player configure it to play with alsa, and =

press play!

    Oops, we forgot to start the daemon... No problem. Go in the =

alsa-plugins subfolder of the archive and type : a2dpd AA:BB:CC:DD:EE:FF.
    where AA:BB:CC:DD:EE:FF is the bluetooth address of your device. =

Now, switch on your headset. Ctrl-C will quit the daemon.

    Try to keep with 16bits/stereo sounds!

    Remove the .asoundrc to restore your sound!



Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easi=
er
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D1=
21642
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-07-12  5:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-07 15:59 [Bluez-devel] Alsa plugin for A2DP daemon Frédéric DALLEAU
2006-07-07 19:18 ` Brad Midgley
2006-07-11 17:54 ` Fabien Chevalier
2006-07-12  5:56 ` Brad Midgley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).