Hello brot
I am not sure what is happening on your system.
Could you provide the output of 'pactl list modules short', to check that the addon has correctly set up pulseaudio.
Hi awiouy - sorry for the delay!
enclosed please find the requested output.
Greetings!
htpc:/tmp # pactl list modules short
0 module-native-protocol-unix
1 module-stream-restore
2 module-device-restore
3 module-default-device-restore
4 module-rescue-streams
5 module-always-sink
7 module-suspend-on-idle
8 module-position-event-sounds
9 module-dbus-protocol
10 module-bluetooth-policy
11 module-bluetooth-discover
12 module-bluez5-discover
13 module-zeroconf-publish
14 module-switch-on-connect
15 module-null-sink sink_name=librespot_sink
16 module-rtp-send source=librespot_sink.monitor destination_ip=127.0.0.1 port=6666 source_ip=127.0.0.1
Display More
I disabled discovery & autoplay in the addon-options and tried to start librespot again. Unfortunately that didnt work either.
kodi.log: hastebin
journal: hastebin
EDIT2:
alsa backend works without any issues. I just can't see any album art with the new version - is that normal?
Why is "--disable-audio-cache" always set as default in all versions? Shouldnt caching speedup the whole thing?
htpc:/var/media/sda-ata-ST2000LM003_HN-M # librespot --backend alsa --bitrate 320 --cache /tmp --device-type avr --name "librespot" --enable-volume-normalisation --autoplay --notify-kodi --device 'hdmi:CARD=PCH,DEV=0'
[2020-05-13T14:51:05Z INFO librespot] librespot 6ddd9501b5 (2020-05-03). Built on 2020-05-05. Build ID: Jtn2PGDd
[2020-05-13T14:51:05Z INFO librespot_core::session] Connecting to AP "gew1-accesspoint-c-1wc3.ap.spotify.com:4070"
[2020-05-13T14:51:05Z INFO librespot_core::session] Authenticated as "pwn1ca" !
[2020-05-13T14:51:05Z INFO librespot_playback::audio_backend::alsa] Using alsa sink
[2020-05-13T14:51:05Z INFO librespot_core::session] Country: "DE"
[2020-05-13T14:51:11Z INFO librespot_connect::spirc] Fetching autoplay context uri
[2020-05-13T14:51:11Z INFO librespot_connect::spirc] Autoplay uri resolved to <"spotify:station:user:spotify:playlist:37i9dQZF1E36lrEPn17hC7">
[2020-05-13T14:51:11Z INFO librespot_playback::player] Loading <Venus> with Spotify URI <spotify:track:1yrB9jNM6UrvSYqWNjN1iQ>
[2020-05-13T14:51:11Z INFO librespot_playback::player] <Venus> (186906 ms) loaded
@Playing Track 1yrB9jNM6UrvSYqWNjN1iQ
Display More
EDIT3:
If I start another addon after started librespot with alsa backend and I want to switch back to librespot, librespot crashes with the following error:
Alsa error PCM open ALSA function 'snd_pcm_open' failed with error 'EBUSY: Device or resource busy'
May 14 12:28:59 htpc librespot[14417]: @Playing Track 56fiFTRrSiHHH3gBeaTg2P
May 14 12:28:59 htpc librespot[14417]: [2020-05-14T10:28:59Z ERROR librespot_playback::audio_backend::alsa] Alsa error PCM open ALSA function 'snd_pcm_open' failed with error 'EBUSY: Device or resource busy'
May 14 12:28:59 htpc librespot[14417]: [2020-05-14T10:28:59Z ERROR librespot_playback::player] Could not start audio: Alsa error: PCM open failed
May 14 12:28:59 htpc librespot[14417]: [2020-05-14T10:28:59Z ERROR librespot_playback::audio_backend::alsa] Alsa error PCM open ALSA function 'snd_pcm_open' failed with error 'EBUSY: Device or resource busy'
May 14 12:28:59 htpc librespot[14417]: [2020-05-14T10:28:59Z ERROR librespot_playback::player] Could not start audio: Alsa error: PCM open failed
May 14 12:28:59 htpc librespot[14417]: @Playing Track 56fiFTRrSiHHH3gBeaTg2P
May 14 12:28:59 htpc librespot[14417]: thread '<unnamed>' panicked at 'called `Option::unwrap()` on a `None` value', src/libcore/option.rs:378:21
Is there any way to fix that?
And how can I integrate librespot with alsa backend into kodi? Even with "--notify-kodi" I can't see any information in kodi while librespot is running (album cover, playback buttons, etc)