mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 08:15:50 +03:00
[PR #447] [MERGED] Refactor Volume control, allow for a fixed volume option #931
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#931
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?
📋 Pull Request Information
Original PR: https://github.com/librespot-org/librespot/pull/447
Author: @ashthespy
Created: 3/9/2020
Status: ✅ Merged
Merged: 7/25/2020
Merged by: @ashthespy
Base:
dev← Head:volume📝 Commits (1)
8541065Refactor Volume control, allow for a fixed volume option📊 Changes
3 files changed (+58 additions, -19 deletions)
View changed files
📝
connect/src/spirc.rs(+19 -13)📝
core/src/config.rs(+27 -1)📝
src/main.rs(+12 -5)📄 Description
This is a (long) overdue follow up to https://github.com/librespot-org/librespot/pull/286#issuecomment-509263437.
I have refactored the old
--linear-volumeflag to a more generic--volume-ctrloption that takes the options of[linear, log, fixed]. It defaults as previously tolog.What

fixeddoes is disable the client side volume control, by settingkVolumeStepsto 0, so no volume events are passed to the client.As usual, this will need a update of the wiki, and should be considered a "breaking change" when considering the versioning.
Fixes #48, Closes #286
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.