ncspot/librespot not working with pipewire
Package Information
- Package name: ncspot
- Package version:
ncspot-1.1.0-r0
- Alpine version:
Alpine Linux 3.20.0_alpha20240329 x86_64
- Alpine architecture: x86_64
Summary
It seems ncspot
depends on pulseaudio
and does not work with pipewire
.
[librespot_playback::player] [ERROR] Audio Sink Error Connection Refused: <PulseAudioSink> Connection refused
Steps to reproduce
- install ncspot from edge repository -
# apk add ncspot
- install and configure
pipewire
&wireplumber
- run
ncspot
, log in and attempt to play a song. - ERROR causes ncspot to crash, returning you to shell prompt
Backtrace
panicked at 'Could not create session: IoError(Custom { kind: UnexpectedEof, error: "early eof" })', src/spotify.rs:204:14
Debug log
...
[2024-04-12][09:41:03] [librespot_playback::player] [INFO] <Strangers> (198556 ms) loaded
[2024-04-12][09:41:03] [librespot_playback::player] [TRACE] == Starting sink ==
[2024-04-12][09:41:03] [librespot_playback::player] [ERROR] Audio Sink Error Connection Refused: <PulseAudioSink> Connection refused
full log: https://0x0.st/X-TP.txt
Is it possible to edit the APKBUILD and swap out pulseaudio_backend
with pipewire_backend
or something like that?