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
Add Volume to Game OSD settings #12765
Conversation
Pushed a commit removing a global from the code. @FernetMenta is the change to the player callback OK, or should we add a second player callback for volume? |
this looks like hard to understand spaghetti code to me. you register a player method into GUI and call back into application, that fires a thread msg to set volume?? (if I interpret this correctly). |
Volume is set from application to player. Player fires a GUI msg to update the GUI. No architectural dependencies are violated. |
I see it differently. You created a circular dependency between player and application. Creating GetVolume / SetVolume in IPlayerCallback is no-go. Concatenating callbacks is still bad enough. EDIT:
Player should not be aware of GUI |
Thanks, that's what I was asking. I'll adjust the PR. |
@garbear this needs a rebase |
7517741
to
4f2e940
Compare
Rebased. I was able to solve the gui dependency in #12715, once that gets merged I'll port the fix to this PR. |
5741fb1
to
8c28e91
Compare
8c28e91
to
ab37bb9
Compare
Circular dependency has been fixed. Good call, impact is much less. Jenkins build this please. |
This adds a Volume setting to the game OSD.
The main reason was to show the hotkey in the GUI, but I decided to make the volume setting clickable.
How Has This Been Tested?
Tested on Windows.
Types of change