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

[NON-MODULAR] Volume mixer #181

Merged
merged 6 commits into from
Oct 30, 2024
Merged

Conversation

W4rd3nn
Copy link

@W4rd3nn W4rd3nn commented Oct 19, 2024

About The Pull Request

So i made a recent PR that changes some of the announcer sounds. Its a lil too loud 4 some people. Rather than going back, tweaking the sounds, and then sending them for review again, I figure I'll just port this closed PR from TG that allows ppl to set a preference for the volumes of certain sounds. This is that PR. Most of the code is courtesy of sadboysuss's PR: tgstation#86932 but I debugged certain parts of it and also added a preference for announcement sounds which is what I wanted in the first place. I also removed the TTS volume part because we dont have that.

Idk how hacky this is and it's certainly not modular so I'd appreciate someone with better knowledge taking a look at it.

image

Why It's Good For The Game

Earz :3

Changelog

🆑Motho
qol: You can now adjust the volume of certain sound types without outright disabling them.
/:cl:

@W4rd3nn
Copy link
Author

W4rd3nn commented Oct 19, 2024

This good for #157 metinks :3

code/__HELPERS/announcements.dm Outdated Show resolved Hide resolved
code/__HELPERS/announcements.dm Outdated Show resolved Hide resolved
code/__HELPERS/priority_announce.dm Outdated Show resolved Hide resolved
code/__HELPERS/priority_announce.dm Outdated Show resolved Hide resolved
code/controllers/subsystem/ambience.dm Outdated Show resolved Hide resolved
Copy link

@SomeRandomOwl SomeRandomOwl left a comment

Choose a reason for hiding this comment

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

Ok so general preface here. You use way too much triple slash's. When doing comments for edits and the like you should only use double slash as triple slash is used for auto documentation which helps describe functions and variables and how they work and is interpreted by visual studio code. If you are also wanting to do block comments use /* */

Doing so many triple slash's would have royally fucked up autodoc.

Secondly, if you only add / change a singular line, do a inline comment, keep the edit to a singular line as it makes the code significantly easier to maintain as it would help minimize any merge conflicts if there where to be any down the line.

code/__HELPERS/announcements.dm Outdated Show resolved Hide resolved
code/__HELPERS/announcements.dm Outdated Show resolved Hide resolved
code/__HELPERS/priority_announce.dm Outdated Show resolved Hide resolved
code/__HELPERS/priority_announce.dm Outdated Show resolved Hide resolved
code/controllers/subsystem/ambience.dm Outdated Show resolved Hide resolved
code/modules/client/preferences/sounds.dm Outdated Show resolved Hide resolved
code/modules/client/preferences/sounds.dm Outdated Show resolved Hide resolved
code/modules/client/preferences_savefile.dm Outdated Show resolved Hide resolved
code/modules/client/preferences_savefile.dm Outdated Show resolved Hide resolved
code/modules/mob/living/silicon/ai/ai_say.dm Outdated Show resolved Hide resolved
@W4rd3nn
Copy link
Author

W4rd3nn commented Oct 19, 2024

ill sign off on these prob tomorrow. busy 2day :3

@carpotoxin carpotoxin merged commit 7d472f6 into DopplerShift13:master Oct 30, 2024
21 checks passed
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