Hi guys, it works very well with Rpi 1 B+ and HiFiBerry DAC+ by adding --mixer Analogue.
I still have an issue maybe I haven't well pinpointed the issue BUT when I play files (music or video with OSMC ) then stop them and launch spotify connect I have an Alsamixer message.
here it is :
Traceback (most recent call last):
File "main.py", line 9, in <module>
from connect import Connect
File "/usr/src/app/connect.py", line 8, in <module>
from console_callbacks import audio_arg_parser, mixer, error_callback, connection_callbacks, debug_callbacks, playback_callbacks, playback_setup
File "/usr/src/app/console_callbacks.py", line 21, in <module>
card = args.device)
alsaaudio.ALSAAudioError: Device or resource busy
If I run
sudo systemctl stop mediacenter then spotify connect works beautifully ?
So either Im wrong about medicenter interfering OR I need help scripting mediacenter stop before spotify and vice versa
Thank you guys.
EDIT2 : Got it working by following OP 1st post, so I created and launched spotify connect as a service and it does work.
EDIT3 : Alllright so If I start spotify service then osmc default to another audio output and I have change it to to hdmi then back to snd hifiberry to make it work through DAC+ again
Help would be greatly appreciated otherwise I'll script start spotify connect
sudo systemctl stop mediacenter
sudo systemctl start scs.service
and the other way around when I want to use OSMC
But I'm sure you readers have a better way of doing this.