decoder/mad, ...: more libfmt logging

This commit is contained in:
Max Kellermann
2021-06-25 17:26:41 +02:00
parent f60a42e0b6
commit b29a43b4d7
42 changed files with 245 additions and 251 deletions

View File

@@ -94,9 +94,9 @@ public:
/* no change */
return;
FormatDebug(replay_gain_domain,
"replay gain mode has changed %s->%s\n",
ToString(mode), ToString(_mode));
FmtDebug(replay_gain_domain,
"replay gain mode has changed {}->{}",
ToString(mode), ToString(_mode));
mode = _mode;
Update();
@@ -155,8 +155,7 @@ ReplayGainFilter::Update()
if (mode != ReplayGainMode::OFF) {
const auto &tuple = info.Get(mode);
float scale = tuple.CalculateScale(config);
FormatDebug(replay_gain_domain,
"scale=%f\n", (double)scale);
FmtDebug(replay_gain_domain, "scale={}\n", scale);
volume = pcm_float_to_volume(scale);
}

View File

@@ -26,6 +26,7 @@ filter_plugins = static_library(
include_directories: inc,
dependencies: [
filter_plugins_deps,
log_dep,
],
)