Skip to content

Conversation

@xezon
Copy link

@xezon xezon commented Dec 22, 2025

This change simplifies volume related code in AudioManager and MilesAudioManager. It is mostly a refactor and performance gains will be immeasurable. I replaced a few if-else with switches.

Functionality wise nothing changes.

The initial motivation for this change was to explore not triggering sounds when the volume was set to 0, but in the end I decided against changing this because it would change behavior in regards to muted audio in flight. I added an info comment in the code to document the desired behavior.

@xezon xezon added Audio Is audio related Minor Severity: Minor < Major < Critical < Blocker Performance Is a performance concern Gen Relates to Generals ZH Relates to Zero Hour Refactor Edits the code with insignificant behavior changes, is never user facing labels Dec 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Audio Is audio related Gen Relates to Generals Minor Severity: Minor < Major < Critical < Blocker Performance Is a performance concern Refactor Edits the code with insignificant behavior changes, is never user facing ZH Relates to Zero Hour

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant