mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 08:15:50 +03:00
[GH-ISSUE #890] Rodio does not release the sound card #444
Labels
No labels
A-Alsa
SpotifyAPI
Tokio 1.0
audio
bug
can't reproduce
compilation
dependencies
duplicate
enhancement
good first issue
help wanted
high priority
imported
imported
invalid
new api
pull-request
question
reverse engineering
wiki
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/librespot#444
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Callenberg on GitHub (Nov 26, 2021).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/890
Originally assigned to: @roderickvd on GitHub.
Hello,
I have detected that the librespot child process that is associated with the sound card does not put the status of the card to "closed" as expected. Which means that librespot is blocking the sound card when another device is chosen and connected. This happens both for the Windows Spotify app and on my Android.
When checking the file
/proc/asound/card0/pcm0p/sub0/statusI can see that the running process persists:owner_pid : 5128. That is a child process to librespot according to the commandpstree -p 5123:Work around: restart librespot, but in the long run that becomes a little bit tedious - I wonder what goes wrong? (The verbose output nor the journald gives me any clues.)
Version:
librespot 0.3.1 UNKNOWN (Built on 2021-11-23, Build ID: 8hhgRK9U, Profile: release)Installed with
cargo install librespotand called withlibrespot -n Player -b 160and also when librespot is a systemd service (using thelibrespot/contrib/librespot.user.serviceas a template).the
apt listcommand gives the following for the packages build-essential and libasound2-dev:The linux version is Debian Buster:
Linux raspberrypi 5.10.63-v7l+ #1459 SMP Wed Oct 6 16:41:57 BST 2021 armv7l GNU/LinuxThank you,
C
@roderickvd commented on GitHub (Nov 26, 2021):
Is this with Rodio or are you using
--backend alsa? Please try that.@Callenberg commented on GitHub (Nov 26, 2021):
Thank you for the quick response.
I am using alsa and I realize now that I forgot that alsa is optional. However, adding
--backend alsamade librespot panicking...librespot -n Testing -b 160 --backend alsacaused the following:I must admit that I am new to rust and cargo so the bin file ended up in /root/.cargo/bin, maybe that is causing the trouble? (I thought it would be in /usr/bin/, ah, well I have to read more about cargo.)
@roderickvd commented on GitHub (Nov 26, 2021):
Please refer to the wiki and COMPILING.md. It's all documented.
@Callenberg commented on GitHub (Nov 27, 2021):
Will do that!, thank you!
@JasonLG1979 commented on GitHub (Nov 28, 2021):
@Callenberg if you're planning on using
librespoton a headless Pi you might checkout Raspotify although I can't guarantee Buster compatibility. You'll probably need to upgrade to Bullseye.My plan is to keep Raspotify up to date with
librespot's dev branch. So really unless you plan on being alibrespotdev it's the way to go IMHO. I may be a little biased though 😉 being one of it's maintainers.@Callenberg commented on GitHub (Nov 28, 2021):
Thank you for the tip!
The only reason I hesitate to upgrade to Bullseye is that I want to be able to use bluealsa (alsa for Bluetooth) and that package is not a part of the distro anymore. I thought it was time to update librespot on my Raspberry and I maybe building librespot myself might be an easier way (and avoid Bullseye for the time being). I understand what you are saying - I will check out Raspotify some more for sure. Thanks.
@JasonLG1979 commented on GitHub (Nov 28, 2021):
Yes I'm familiar
It looks like it will back in the
bluez-alsa-utilspackage in the next Debian release.