intone a2dp (bluetooth) support

DJDAS djdas at
Mon Jun 8 10:05:40 CEST 2009

c_c ha scritto:
> Hi,
> The Digital Pioneer wrote:
>>> AFAIK, the only way to do it is to run mplayer with -ao
>>> alsa:device=bluetooth
>   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
>   Or
>  I can have 2 configurations in a file (normal / bluetooth) - I 
> think .asoundrc and change output from intone somehow using
> that.
>  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 module of BlueMoko[1] 
(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 
the headset.


More information about the community mailing list