I can hear music by my Nokia a2dp bluetooth headset, quite "out of the box" in Slackware 14.1. It's really simple but it does the trick and I hope it helps!
1.
We need an .asoundrc in $HOME:
Code:
pcm.!default {
type bluetooth
device XX:XX:XX:XX:XX:XX
profile hifi}
The XX:XX:XX:XX:XX:XX device is retrieved from:
2.
Turning on the bluetooth headset, "Blueman applet" asks for pairing: we've to insert the right pin number in order to associate the new device.
3.
...and then:
Code:
mplayer -ao alsa myfile.mp3
The alsa output will be routed to the Bluetooth haedset.
..alternatively we could create a virtual device; here's the .asoundrc:
Code:
pcm.bluetooth {
type bluetooth
device XX:XX:XX:XX:XX:XX
profile hifi
}
...then mplayer routes the audio output to the new virtual device:
Code:
mplayer -ao alsa:device=bluetooth myfile.mp3