mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 08:15:50 +03:00
[GH-ISSUE #542] Crash when trying to play to alsa loopback device #346
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#346
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 @yofreke on GitHub (Nov 27, 2020).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/542
Originally assigned to: @roderickvd on GitHub.
My goal is to run the output of librespot to an alsa loopback device, however I get this crash when trying to play audio. It seems like the crash only happens when something is listening to the other side of the loopback. Happy to help debug if there is any missing info
@bartoszwalicki commented on GitHub (Dec 12, 2020):
I have the same problem. I am trying to play on softvol pcm device. Configured in ALSA as:
Trying to play via raspotify, passing
--device softvoltolibrespot.@ashthespy commented on GitHub (Dec 12, 2020):
This fails because we explicitly set the rate to
44100along with other hardware parameters inalsa.rs-- is your device capable of that?github.com/librespot-org/librespot@89cafd7c86/playback/src/audio_backend/alsa.rs (L50-L53)Try and see if this patch helps?
@roderickvd commented on GitHub (May 25, 2021):
That's weird because
snd_pcm_hw_params_set_rate_resample()is enabled by default.I cannot reproduce this on my setup (also, Alsa softvol is working fine for me and other users).
Can you try this on the latest
librespotand report back?In the logs below you see that the loopback device assumes rate 48000 by default but changes to 44100 the moment
librespotstarts playback.@roderickvd commented on GitHub (Jun 14, 2021):
Cannot reproduce and no further replies.