-
-
Notifications
You must be signed in to change notification settings - Fork 250
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
Implement volume control #830 #994
Conversation
📦 A new release has been made for this pull request.To play around with this PR, pull Images are available for x86_64 and ARM64.
|
Er...need to make volume persistent first. Please hold. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for the contribution!
- let's remove the
VOLUME_CONTROL
env var, I think this command can just always be available - we should persist this in the sqlite database so volume changes survive across Muse restarts
Instead of using the same For settings in sqlite -- I see that currently each setting is a different column. I usually prefer to do a KV approach so that new settings can be added without requiring a migration. Would that be acceptable? I'll write the migrations for that as well. EX Current Table New |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry for my late reply, let's keep the existing structure of the config table and add a new column (I prefer the existing approach because it's more conventional and allows for correct data types instead of each setting being a string)
otherwise looks good!
5a028d8
to
fadaa1a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
made a few minor changes and it's working great, only comment is that changes to the setting don't take effect until after Muse is started; is it possible to reload the config on the fly?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this change should address using newest default volume. Sets default vol on new class field and uses that if volume is not explicitly set for the player. This way the player will always get most up-to-date default volume and use it if no user interacts with /volume
command.
I've been using this on my own server since the last change and it has been working perfectly 👍 |
I would love to see this so people stop complaining about it being way to loud when they first experience the music bot. |
looks like there's some merge conflicts, happy to take a final look and merge after they're resolved @GitGurky in the meantime, if you're using the Docker image, feel free to switch to the image tag that the bot posted above to start using this |
# Conflicts: # CHANGELOG.md # schema.prisma # src/commands/config.ts
ccd8793 introduced a new migration so we need to regenerate since the new migration does not include defaultVolume
This is ready to merge, again. @GitGurky you should use |
hmm, why do you say that? going by the commit hash it seems to have the latest commit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems to be working great!
🚀 Released in Release v2.7.0. |
When I looked at the tag on dockerhub the last push was ~20 days ago. It now shows it as pushed 13 hours ago. |
Closes #830