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

Feature - Add audio tab and master volume setting #4661

Merged
merged 7 commits into from
Aug 8, 2023

Conversation

sensualcoder
Copy link
Contributor

This PR adds a Master Volume setting to the application to control the sound output, and also moves the audio settings into a new tab in the Client Settings menu.

In addition, there is a new Sound class that encapsulated storing and playing sound files, and a SoundManager class to provide an interface for all of the current sounds effects as well as handling audio settings changes.

@HammerGS HammerGS added the For New Dev Cycle This PR should be merged at the beginning of a dev cycle label Jul 23, 2023
@HammerGS
Copy link
Member

Thanks for the PR. We are getting close to the 0.49.14 Dev release, so this will get tagged with a "For new dev cycle (49.15).

If you haven't joined our Discord I'd recommend joining it as its an easy way to get feedback.

Wire up new classes to use the master volume setting to change the volume of sound output
Add AudioService interface for other possible users, and SoundType enum for current sounds
@sensualcoder
Copy link
Contributor Author

Updated this PR with some small changes

Copy link
Member

@NickAragua NickAragua left a comment

Choose a reason for hiding this comment

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

Looks good, I'd like to see a few comments on some the new classes.

@sensualcoder
Copy link
Contributor Author

Added some comments explaining the Sound class and methods and the methods in SoundManager. Let me know if I should add more :)

@kuronekochomusuke kuronekochomusuke removed the For New Dev Cycle This PR should be merged at the beginning of a dev cycle label Aug 8, 2023
@NickAragua NickAragua merged commit 0a628f3 into MegaMek:master Aug 8, 2023
@sensualcoder sensualcoder deleted the add-audio-tab branch August 8, 2023 14:35
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.

4 participants