mirror of
https://github.com/devgianlu/go-librespot.git
synced 2026-04-26 05:15:49 +03:00
[PR #144] [MERGED] fix: fix fast relative volume updates #231
Labels
No labels
bug
enhancement
pull-request
spotify-side
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/go-librespot#231
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/devgianlu/go-librespot/pull/144
Author: @aykevl
Created: 11/13/2024
Status: ✅ Merged
Merged: 11/13/2024
Merged by: @devgianlu
Base:
master← Head:fix-relative-volume-updates📝 Commits (1)
4cd52f3fix: fix fast relative volume updates📊 Changes
2 files changed (+3 additions, -11 deletions)
View changed files
📝
cmd/daemon/controls.go(+1 -8)📝
cmd/daemon/player.go(+2 -3)📄 Description
Relative volume changes would use old values, not the new value set by a volume change in the last second. To fix this, update the player state immediately and only delay sending the update (instead of also delaying the update to the player state).
This could mean that another change (such as play/pause) would send an earlier volume update, but I don't think that's a problem. We'll send a PutStateReason_VOLUME_CHANGED anyway after a second.
Fixes https://github.com/devgianlu/go-librespot/issues/141
This is an alternative to #142
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.