Feature: prevent app change media volume #207
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Applications launched by PlayCover cannot read the current media volume level in macOS, but they can modify the media volume level normally. Some applications may assume the current media volume is 100% when reading fails. If you accidentally adjust the volume in these applications, the macOS media volume will suddenly become extremely loud, which can damage your hearing.
This PR contains two modifications: it will trick the application into believing the current media volume is 30%, and it will discard any changes the application makes to the media volume value. You can still adjust the media volume in macOS using headphone buttons, keyboard function keys, or the system volume slider.