I'm trying to configure my Raspberry Pi (model B) to work as an AirPlay to Bluetooth bridge of sorts. I'm using Shairport-Sync to receive the AirPlay audio successfully, and can get it to output via Alsa to either the built-in minijack or a USB sound card, and I've got Bluetooth mostly-working, but I'm struggling to connect the dots.
I've configured ~/.asoundrc
so I can connect to my Bluetooth speaker successfully, and can play audio via mplayer using the command mplayer -ao alsa:device=bluetooth audiofile.mp3
, but I can't get any output via aplay.
In trying to get aplay to work too, I've discovered that my Bluetooth audio device appears when I enter the command aplay -L
, but it doesn't when I do aplay -l
.
So what's the difference? Why does it show in one but not the other?
I think if I can understand this, I might be able to play audio via aplay on the command line, and if I can do that, I should be able to get Shairport-sync to output to my Bluetooth speakers too!
Can anyone share some knowledge with me?
Thanks!