Skip to content

Increase gain and adjust audio attenuation #897#1171

Merged
codeHusky merged 1 commit intosmartcmd:mainfrom
ModMaker101:fix/low-ingame-audio-897
Mar 12, 2026
Merged

Increase gain and adjust audio attenuation #897#1171
codeHusky merged 1 commit intosmartcmd:mainfrom
ModMaker101:fix/low-ingame-audio-897

Conversation

@ModMaker101
Copy link
Contributor

Description

Fixed an issue where in-game SFX were quieter than GUI and music,

Changes

Previous Behavior

In-game SFX were quieter than GUI sounds and music.

Root Cause

Sound effects were being attenuated too aggressively due to spatial audio settings and gain limits.

New Behavior

Sound effects are louder and more consistent with other audio sources while maintaining spatial attenuation.

Fix Implementation

Adjusted SFX gain scaling and introduced new constants for SFX volume and attenuation. In this case, they are:

  • SFX_3D_MIN_DISTANCE
  • SFX_3D_MAX_DISTANCE
  • SFX_3D_ROLLOFF
  • SFX_VOLUME_MULTIPLIER
  • SFX_MAX_GAIN

AI Use Disclosure

No.

Related Issues

2026-03-12.00-15-48.mp4

Video quality isn't the best there, but the main part is the audio.

@Rubix925
Copy link

This is the pull request I've been waiting for, great work!

@ModMaker101
Copy link
Contributor Author

Ready to merge.

@loinmin
Copy link

loinmin commented Mar 12, 2026

THANK GOODNESS

@codeHusky codeHusky merged commit 44fc8a4 into smartcmd:main Mar 12, 2026
1 check 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.

[Bug] Audio in-game a bit low

4 participants