From: Fabien Chevalier <fabchevalier@free.fr>
To: BlueZ development <bluez-devel@lists.sourceforge.net>
Subject: Re: [Bluez-devel] Alsa plugin for A2DP daemon
Date: Tue, 11 Jul 2006 19:54:22 +0200 [thread overview]
Message-ID: <44B3E5CE.20609@free.fr> (raw)
In-Reply-To: <44AE84D4.9080903@palmsource.com>
Terrific work !! :-)
Just a tip: maybe you could use UNIX sockets to remove TCP burden.
Cheers,
Fabien
> 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 ea=
sier
> 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=
=3D121642
> _______________________________________________
> Bluez-devel mailing list
> Bluez-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bluez-devel
> =
> =
-------------------------------------------------------------------------
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
next prev parent reply other threads:[~2006-07-11 17:54 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2006-07-12 5:56 ` Brad Midgley
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=44B3E5CE.20609@free.fr \
--to=fabchevalier@free.fr \
--cc=bluez-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).