mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-28 00:35:55 +03:00
[PR #1498] [MERGED] spirc: Configurable volume control steps #1419
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#1419
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/1498
Author: @ssmccoy
Created: 4/29/2025
Status: ✅ Merged
Merged: 5/1/2025
Merged by: @photovoltex
Base:
dev← Head:volume-steps📝 Commits (7)
59728f6spirc: Configurable volume control steps66d0308fixup! spirc: Configurable volume control steps6572f8afixup! spirc: Configurable volume control steps0428c47fixup! spirc: Configurable volume control steps3501574fixup! spirc: Configurable volume control stepsbd2e3e6fixup! spirc: Configurable volume control stepsd95de5efixup! spirc: Configurable volume control steps📊 Changes
4 files changed (+54 additions, -23 deletions)
View changed files
📝
CHANGELOG.md(+1 -0)📝
connect/src/spirc.rs(+7 -5)📝
connect/src/state.rs(+8 -2)📝
src/main.rs(+38 -16)📄 Description
Allow the volume control steps to be configured via the
--volume-stepscommand line parameter. The author personally found the default volume steps of1024to be completely unusable, and is presently using128as his configuration. Updated the default to64which more closely mirrors the official client behavior.Additionally, reduce the delay in volume update from a wopping two seconds to 500ms, again for usability.
Also clean up the seemingly unnecessary use of a pattern match on whether or not
--initial-volumewas supplied.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.