Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix fast relative volume updates #144

Merged
merged 1 commit into from
Nov 13, 2024

Conversation

aykevl
Copy link
Contributor

@aykevl aykevl commented Nov 13, 2024

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 #141

This is an alternative to #142

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.
@devgianlu devgianlu merged commit eab244b into devgianlu:master Nov 13, 2024
6 checks passed
@aykevl aykevl deleted the fix-relative-volume-updates branch November 13, 2024 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

API: relative POST player/volume seems to be broken
2 participants