mirror of
https://github.com/glest/glest-source.git
synced 2025-08-13 11:54:00 +02:00
fix windows build
This commit is contained in:
@@ -520,7 +520,7 @@ bool SoundPlayerDs8::findStrBuffer(Sound *sound, int *bufferIndex){
|
||||
// =====================================================
|
||||
|
||||
long dsVolume(float floatVolume){
|
||||
float correctedVol= log10f(floatVolume*9.f+1.f);
|
||||
float correctedVol= std::log10f(floatVolume*9.f+1.f);
|
||||
long vol= static_cast<long>(DSBVOLUME_MIN+correctedVol*(DSBVOLUME_MAX-DSBVOLUME_MIN));
|
||||
return clamp(vol, DSBVOLUME_MIN, DSBVOLUME_MAX);
|
||||
}
|
||||
|
Reference in New Issue
Block a user