mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 00:05:55 +03:00
[GH-ISSUE #946] Audio Sink Error when switching between two instances of librespot #462
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#462
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 @ghost on GitHub (Jan 26, 2022).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/946
Tested on:
librespot 0.3.1 4370aa1 (Built on 2021-12-22, Build ID: Ov05MEB1, Profile: release)This is probably a very unusual use case, but I am trying to open an issue, hopefully it leads to a good discussion, as usual.
I am running two instances of
librespoton one device (Raspberry Pi 3).Both are configured to output to the same
alsadevice. The meaning of this is that one instance is configured with--normalisation-pregain "-9"and is used when listening to music on headphones and the other instance is configured with--normalisation-pregain "6"and is used on speakers at night.The problem is that when switching between them, for example from
headphonestospeakers, the new instance starts before the old instance stops and this creates an error with the alsa sink:Is there anything the devs can do with this? Maybe implement a small (configurable) delay somewhere in the chain, or is there a better way to handle this use case?
@roderickvd commented on GitHub (Jan 26, 2022):
Sorry, but that is not something I am going to deal with. You may want to look at using PulseAudio as a backend, that can accept multiple sources at the same time.