Skip to content

Adjust volume controls behaviour#166

Merged
Rigellute merged 1 commit into
Rigellute:masterfrom
gpawlik:volume-adjust
Nov 26, 2019
Merged

Adjust volume controls behaviour#166
Rigellute merged 1 commit into
Rigellute:masterfrom
gpawlik:volume-adjust

Conversation

@gpawlik
Copy link
Copy Markdown
Contributor

@gpawlik gpawlik commented Nov 25, 2019

Description of the issue

The volume control does not work as intended, if + and - are pressed in a moderate pace the value updates every second press, and after some time it starts to get even more messy.

Solution to the issue

I have removed get_current_playback call after the successful volume change. In this context I think it is not necessary to poll for the playback data, but maybe I am missing something, would you be able to confirm it @Rigellute ?

Before/After screenshots 📷

Before After
bbb aaa

Copy link
Copy Markdown
Owner

@Rigellute Rigellute left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah yes, makes sense! Since we are manually updating the volume percent on success, the additional call for current playback is unnecessary, and causes the app to block while we wait for the request to resolve.

The app is currently single threaded with no async runtime. This is something I'm trying to find the time to work on improving!

Thanks for investigating and solving this issue!

Also, great PR description 👍

@Rigellute
Copy link
Copy Markdown
Owner

This PR will close #101

@Rigellute Rigellute merged commit 38c182c into Rigellute:master Nov 26, 2019
nighi pushed a commit to nighi/spotify-tui that referenced this pull request Jul 11, 2025
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.

2 participants