intone a2dp (bluetooth) support
djdas at djdas.net
Mon Jun 8 10:05:40 CEST 2009
c_c ha scritto:
> The Digital Pioneer wrote:
>>> AFAIK, the only way to do it is to run mplayer with -ao
> Ok. But what would be the best of doing so from intone :-
> 1. I stop the current process from Intone
> 2. Start new process with the -ao flag
> I can have 2 configurations in a file (normal / bluetooth) - I
> think .asoundrc and change output from intone somehow using
> I'm not all that clued up on alsa - so can someone with more knowledge
> than I throw some light?
It's very simple: you have to pair to the device and create a .asoundrc
file in $HOME.
You can see a sample of it in the bluethooth.py module of BlueMoko
(look at the function connect_A2DP() )
After this the bluetooth headset will become the default alsa device so
you won't need to change any configuration in mplayer but just start a
new mplayer process which will play through the headset.
To reset the alsa output simply remove the .asoundrc and disconnect from
More information about the community