unclamed gain rev2

This commit is contained in:
TimeyDingo
2026-08-05 12:46:11 -04:00
parent c3dd2ab6eb
commit e8db6f1c4c
+3
View File
@@ -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;
}