From f45987d59af3851a5df2fa57b00a0e6d081452e3 Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Thu, 3 Oct 2013 14:04:15 +0000 Subject: [PATCH] fix windows build --- source/shared_lib/sources/sound/ds8/sound_player_ds8.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/shared_lib/sources/sound/ds8/sound_player_ds8.cpp b/source/shared_lib/sources/sound/ds8/sound_player_ds8.cpp index 445d82dfd..28ab185a8 100644 --- a/source/shared_lib/sources/sound/ds8/sound_player_ds8.cpp +++ b/source/shared_lib/sources/sound/ds8/sound_player_ds8.cpp @@ -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(DSBVOLUME_MIN+correctedVol*(DSBVOLUME_MAX-DSBVOLUME_MIN)); return clamp(vol, DSBVOLUME_MIN, DSBVOLUME_MAX); }