I have installed all three (LMS, squeezelite and Shairport) on the same raspberry pi, but I can't seem to make Shairport work: I can connect to it but I have no audio output.
The RPi is equipped with a USB sound card, which is correctly configured (via asound.conf) and it works correctly with squeezelite.
Any suggestions?
Thanks
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
I know that, but I am not playing two output streams at the same time.
Unless squeezelite sort of "seizes" the sound card for itself.
I'll try disabling squeezelite and see if this way shairport works.
I'll report my findings
Ok, disabling squeezelite makes shairport work.
I'm not savvy enough to set up dmix, so I guess I'll just stay with squeezelite.
It would have been a good way to stream Spotify though.
As Fourdee explained above, it can be done by enabling software mixing in ALSA.
I will look into it as soon as I find the time, hoping it is not beyond my skills/capabilities.
Another way to achieve this is by installing MPD server / Mopidy and Shairport... I have tried and it works, but with some limitations that make me prefer LMS / Squeezelite over this solution because:
- I couldn't find a way to make MPDroid (the Android app to manage the MPD server) work properly.
- Overall the system is too slow
- TuneIn radio stations cannot be set as favorites for easy access to them
I might try to optimize the system in order to check if it becomes more responsive and to overcome those limitations (there are lots of plugins that might help), but it seems to me that LMS is a much better project overall.
Asound.conf for dmix as default device.
Make sure you remove any custom soundcard definitions you have added in squeezelite and shairport.
Copy and paste all, then reboot:
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
Since I am using a USB sound card, I used the second version, but it's not working.
Squeezelite player does not show up as an available player connected to the LMS server.
Also, shairport won't play any music.
Sciamano wrote:Since I am using a USB sound card, I used the second version, but it's not working.
Squeezelite player does not show up as an available player connected to the LMS server.
Also, shairport won't play any music.
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.