1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-01 16:38:31 +00:00

Fix some copy-paste mistakes in linear/db volume functions

This commit is contained in:
Rémi Verschelde
2015-09-26 16:47:59 +02:00
parent 3bf24eeb6b
commit 1e147c4945
2 changed files with 7 additions and 7 deletions

View File

@@ -79,9 +79,9 @@ public:
return Math::log( p_linear ) * 8.6858896380650365530225783783321;
}
static inline double db2linear(double p_linear) {
static inline double db2linear(double p_db) {
return Math::exp( p_linear * 0.11512925464970228420089957273422 );
return Math::exp( p_db * 0.11512925464970228420089957273422 );
}
static bool is_nan(double p_val);