Same sound card for Kodi and Squeezelite

Hi,

I’ve installes squeezelite on my OSMC (newest Release).
I configured my USB sound card in squeezelite and it works like it should.
But now I can’t use the sound card in Kodi. It’s not shown in the preferences.
When I deactivate it in squeezelite I can use it in Kodi.
How can I use the same sound card in both?

Hey @r_knipp had olat of issues with this as well perhaps not a usb but you need to separate how squeezelite start and what it uses

Here is my working squeezelite systemd service file hope this helps it lets you play music on squeezelite when system is idle you can change it to type simple if its not working for you.

Also you might wanna change it audiocard by changing sysdefault:CARD=ALSA to desired audiocard by checking what interfaces are available with squeezelite -l

place this file at /etc/systemd/system/squeezelite.service and change squeezeboxserver to ip or dns for your server and clientname to whatever you want your client to be named

[Unit]
Description=SqueezeLite Player Service
After=network.target

[Service]
Type=idle
User=root
PAMName=system-local-login
ExecStart=/usr/bin/squeezelite -o "sysdefault:CARD=ALSA" -s squeezeboxserver:3483 -n "clientname"
ExecStop=/bin/kill -SIGTERM $MAINPID

[Install]
WantedBy=multi-user.target

then

cd /etc/systemd/system/
sudo systemctl enable squeezelite.service
sudo service squeezelite start

also clear out the old init.d script

sudo /etc/init.d/squeezelite stop
sudo update-rc.d squeezelite disable
sudo rm /etc/init.d/squeezelite
1 Like

Thanks for your reply.
I tried it with your suggested settings but it doesn’t work for me.
Now I can choose the sound card in Kodi but I have no sound in Kodi when squeezelite is running.
I have to stop the squeezelite service to have sound in Kodi.
Furthermore squeezelite is not starting at startup.

Maybe it’s possible to write a script that stops squeeze when Kodi starts playing and starts squeeze when Kodi stops playing? Or to use two sound cards?

suggest you read up a bit more i can use squeezelite and run kodi at the same time on the same soundcard mess around with settings find what works for u.

OK, I’ll give it try. Thanks.