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 volume reset when unmuting by clicking the slider #31

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zWolfrost
Copy link
Contributor

@zWolfrost zWolfrost commented Apr 17, 2024

Fixes #24

This happened because when "set_muted" is called to unmute a meter, it checks if the volume is 0% on both sides and resets them to 100% if it is.

However, the volume it got was under some kind of latency and, when unmuting by clicking the slider, "set_muted" still thinks the volume is 0% (from both sides), thus resetting the volume to 100% anyway.

By setting the variable "zero_volume_reset" i have made sure that the volume is not reset when unmuting by clicking the slider, but only when clicking the button directly.

@zWolfrost zWolfrost changed the title fix volume reset when unmuting by clicking the slider (#24) fix volume reset when unmuting by clicking the slider (fixes #24) Apr 17, 2024
@zWolfrost zWolfrost changed the title fix volume reset when unmuting by clicking the slider (fixes #24) fix volume reset when unmuting by clicking the slider Apr 17, 2024
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.

Unmuting a channel by clicking the slider sets its volume to 100% for some reason.
1 participant