From: Steinar H. Gunderson Date: Mon, 3 Dec 2018 18:44:31 +0000 (+0100) Subject: Rename nageru/db.h to decibel.h, since it is confusing to also have futatabi/db.h... X-Git-Tag: 1.8.0~68 X-Git-Url: https://git.sesse.net/?p=nageru;a=commitdiff_plain;h=c290898058c364494fa74398c70566f3bff1ae4c Rename nageru/db.h to decibel.h, since it is confusing to also have futatabi/db.h that means database. --- diff --git a/nageru/audio_mixer.cpp b/nageru/audio_mixer.cpp index 7bb1ddd..f63fe24 100644 --- a/nageru/audio_mixer.cpp +++ b/nageru/audio_mixer.cpp @@ -18,7 +18,7 @@ #include #include -#include "db.h" +#include "decibel.h" #include "flags.h" #include "shared/metrics.h" #include "state.pb.h" diff --git a/nageru/audio_mixer.h b/nageru/audio_mixer.h index 9793646..a7ab9a5 100644 --- a/nageru/audio_mixer.h +++ b/nageru/audio_mixer.h @@ -23,7 +23,7 @@ #include "alsa_pool.h" #include "correlation_measurer.h" -#include "db.h" +#include "decibel.h" #include "defs.h" #include "ebu_r128_proc.h" #include "filter.h" diff --git a/nageru/benchmark_audio_mixer.cpp b/nageru/benchmark_audio_mixer.cpp index f140a51..7ec3450 100644 --- a/nageru/benchmark_audio_mixer.cpp +++ b/nageru/benchmark_audio_mixer.cpp @@ -13,7 +13,7 @@ #include #include "audio_mixer.h" -#include "db.h" +#include "decibel.h" #include "defs.h" #include "input_mapping.h" #include "resampling_queue.h" diff --git a/nageru/db.h b/nageru/decibel.h similarity index 74% rename from nageru/db.h rename to nageru/decibel.h index 53261ab..acbb5d6 100644 --- a/nageru/db.h +++ b/nageru/decibel.h @@ -1,5 +1,5 @@ -#ifndef _DB_H -#define _DB_H 1 +#ifndef _DECIBEL_H +#define _DECIBEL_H 1 // Utility routines for working with decibels. @@ -8,4 +8,4 @@ static inline double from_db(double db) { return pow(10.0, db / 20.0); } static inline double to_db(double val) { return 20.0 * log10(val); } -#endif // !defined(_DB_H) +#endif // !defined(_DECIBEL_H)