decoder/mad, ...: more libfmt logging
This commit is contained in:
@@ -71,9 +71,9 @@ pcm_resample_lsr_global_init(const ConfigBlock &block)
|
||||
throw FormatRuntimeError("unknown samplerate converter '%s'",
|
||||
converter);
|
||||
|
||||
FormatDebug(libsamplerate_domain,
|
||||
"libsamplerate converter '%s'",
|
||||
src_get_name(lsr_converter));
|
||||
FmtDebug(libsamplerate_domain,
|
||||
"libsamplerate converter '{}'",
|
||||
src_get_name(lsr_converter));
|
||||
}
|
||||
|
||||
AudioFormat
|
||||
@@ -98,9 +98,9 @@ LibsampleratePcmResampler::Open(AudioFormat &af, unsigned new_sample_rate)
|
||||
memset(&data, 0, sizeof(data));
|
||||
|
||||
data.src_ratio = double(new_sample_rate) / double(af.sample_rate);
|
||||
FormatDebug(libsamplerate_domain,
|
||||
"setting samplerate conversion ratio to %.2lf",
|
||||
data.src_ratio);
|
||||
FmtDebug(libsamplerate_domain,
|
||||
"setting samplerate conversion ratio to {:.2}",
|
||||
data.src_ratio);
|
||||
src_set_ratio(state, data.src_ratio);
|
||||
|
||||
AudioFormat result = af;
|
||||
|
||||
@@ -200,9 +200,8 @@ pcm_resample_soxr_global_init(const ConfigBlock &block)
|
||||
soxr_quality = soxr_quality_spec(recipe, 0);
|
||||
}
|
||||
|
||||
FormatDebug(soxr_domain,
|
||||
"soxr converter '%s'",
|
||||
soxr_quality_name(recipe));
|
||||
FmtDebug(soxr_domain, "soxr converter '{}'",
|
||||
soxr_quality_name(recipe));
|
||||
|
||||
const unsigned n_threads = block.GetBlockValue("threads", 1);
|
||||
soxr_runtime = soxr_runtime_spec(n_threads);
|
||||
@@ -226,7 +225,7 @@ SoxrPcmResampler::Open(AudioFormat &af, unsigned new_sample_rate)
|
||||
throw FormatRuntimeError("soxr initialization has failed: %s",
|
||||
e);
|
||||
|
||||
FormatDebug(soxr_domain, "soxr engine '%s'", soxr_engine(soxr));
|
||||
FmtDebug(soxr_domain, "soxr engine '{}'", soxr_engine(soxr));
|
||||
if (soxr_use_custom_recipe)
|
||||
FormatDebug(soxr_domain,
|
||||
"soxr precision=%0.0f, phase_response=%0.2f, "
|
||||
|
||||
@@ -69,6 +69,7 @@ pcm = static_library(
|
||||
pcm_basic_dep,
|
||||
libsamplerate_dep,
|
||||
soxr_dep,
|
||||
log_dep,
|
||||
],
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user