diff --git a/src/ObjLoading/Game/T6/AssetLoaders/AssetLoaderSoundBank.cpp b/src/ObjLoading/Game/T6/AssetLoaders/AssetLoaderSoundBank.cpp index bdece92b..ff16a1cf 100644 --- a/src/ObjLoading/Game/T6/AssetLoaders/AssetLoaderSoundBank.cpp +++ b/src/ObjLoading/Game/T6/AssetLoaders/AssetLoaderSoundBank.cpp @@ -81,7 +81,7 @@ namespace return std::pow(10.0f, (dbsplValue - 100.0f) / 20.0f); } - float CentToHertz(const float cents) + float CentsToHertz(const float cents) { return std::pow(2.0f, cents / 1200.0f); } @@ -142,7 +142,7 @@ namespace return false; } - value = static_cast(CentToHertz(centValue) * static_cast(std::numeric_limits::max())); + value = static_cast(CentsToHertz(centValue) * static_cast(std::numeric_limits::max())); return true; }