From e8db6f1c4c276c43de7cbc157e2ac54d44bad0a2 Mon Sep 17 00:00:00 2001 From: TimeyDingo Date: Wed, 5 Aug 2026 12:46:11 -0400 Subject: [PATCH] unclamed gain rev2 --- src/modules/audio/null/Source.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/modules/audio/null/Source.cpp b/src/modules/audio/null/Source.cpp index a689093f4..5ad03cf57 100644 --- a/src/modules/audio/null/Source.cpp +++ b/src/modules/audio/null/Source.cpp @@ -176,6 +176,9 @@ float Source::getMinVolume() const void Source::setMaxVolume(float volume) { + #ifndef AL_SOFT_gain_clamp_ex + volume = std::min(volume, 1.0f); + #endif this->maxVolume = volume; }