mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 08:15:50 +03:00
[GH-ISSUE #1252] support for setting volume directly in addition to volume up/down #573
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#573
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 @morunner on GitHub (Feb 19, 2024).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/1252
my issue
I am using librespot for programming a spotify connect with an additional speaker. I am using a potentiometer for volume control. As far as I can see, there is no possibility to directly set the volume on the running client.
desired solution
Allow calling the mixer set_volume function directly on the running task instead of only increasing/decreasing the volume by steps.
possible alternative
I am using a Raspberry Pi Zero W as platform. There I could also set the volume on alsa directly. But then, the hardware volume control interferes with the volume control of the spotify client. Additionally, my implemented volume control is not in sync with the volume of the librespot spotify client.
@morunner commented on GitHub (Feb 19, 2024):
I have just seen, that this is already being covered in dev (https://github.com/librespot-org/librespot/blob/dev/connect/src/spirc.rs#L433). Thus, I am closing again.