diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-07-01 20:17:25 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-07-01 20:17:25 +0200 |
| commit | ad27397a050b8ea43dad62b0b85be26166b56b7c (patch) | |
| tree | 7db5271b21c6f07c7ce53ca81648b694bd8e71b3 /src/lib/maths_util.cc | |
| parent | 89496a5ce67da007e40502783ddf4139aac052c8 (diff) | |
White space: player_video.{cc,h} reel_writer.{cc,h} maths_util.{cc,h} upmixer_{a,b}.{cc,h} upload_job.{cc,h}
Diffstat (limited to 'src/lib/maths_util.cc')
| -rw-r--r-- | src/lib/maths_util.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/maths_util.cc b/src/lib/maths_util.cc index 76681afb6..7fb3b74ee 100644 --- a/src/lib/maths_util.cc +++ b/src/lib/maths_util.cc @@ -24,21 +24,21 @@ double -db_to_linear (double db) +db_to_linear(double db) { return pow(10, db / 20); } double -linear_to_db (double linear) +linear_to_db(double linear) { return 20 * log10(linear); } float -logarithmic_fade_in_curve (float t) +logarithmic_fade_in_curve(float t) { auto const c = clamp(t, 0.0f, 1.0f); return std::exp(2 * (c - 1)) * c; @@ -46,7 +46,7 @@ logarithmic_fade_in_curve (float t) float -logarithmic_fade_out_curve (float t) +logarithmic_fade_out_curve(float t) { auto const c = clamp(t, 0.0f, 1.0f); return std::exp(-2 * c) * (1 - c); |
