mirror of
https://github.com/love2d/love.git
synced 2026-08-12 08:30:56 +02:00
unclamed gain rev2
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user