[GH-ISSUE #1252] support for setting volume directly in addition to volume up/down #573

Closed
opened 2026-02-27 19:31:20 +03:00 by kerem · 1 comment
Owner

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.

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.
kerem 2026-02-27 19:31:20 +03:00
Author
Owner

@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.

<!-- gh-comment-id:1952185163 --> @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.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/librespot#573
No description provided.