From 93a35f5dcf6b53f829e76cee31b3c9208f243abe Mon Sep 17 00:00:00 2001 From: Jbleezy Date: Mon, 7 Oct 2024 01:15:48 -0700 Subject: [PATCH] Rename CentToHertz to CentsToHertz --- src/ObjLoading/Game/T6/AssetLoaders/AssetLoaderSoundBank.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }