diff options
author | withmorten <morten.with@gmail.com> | 2021-06-28 13:31:35 +0200 |
---|---|---|
committer | withmorten <morten.with@gmail.com> | 2021-06-28 13:31:35 +0200 |
commit | cb3b3855b844c14c0e943c1a7614fc29820cf666 (patch) | |
tree | 8e9a6ae74e9c98515b813f412476058274d3fde4 /src/audio/sampman_oal.cpp | |
parent | cc235be3aa1ad97ac7067af0d619ee714d9d05eb (diff) |
rename clamp macro to Clamp to fix compilation with g++11
Diffstat (limited to 'src/audio/sampman_oal.cpp')
-rw-r--r-- | src/audio/sampman_oal.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/audio/sampman_oal.cpp b/src/audio/sampman_oal.cpp index f2771885..31c27154 100644 --- a/src/audio/sampman_oal.cpp +++ b/src/audio/sampman_oal.cpp @@ -348,7 +348,7 @@ int8 cSampleManager::SetCurrent3DProvider(uint8 nProvider) { int savedprovider = curprovider; - nProvider = clamp(nProvider, 0, m_nNumberOfProviders - 1); + nProvider = Clamp(nProvider, 0, m_nNumberOfProviders - 1); if ( set_new_provider(nProvider) ) return curprovider; @@ -1424,7 +1424,7 @@ bool8 cSampleManager::UpdateReverb(void) #undef CALCRATIO #undef ZR - fRatio = clamp(fRatio, usingEAX3==1 ? 0.0f : 0.30f, 1.0f); + fRatio = Clamp(fRatio, usingEAX3==1 ? 0.0f : 0.30f, 1.0f); if ( fRatio == _fPrevEaxRatioDestination ) return FALSE; |