diff --git a/main.cpp b/main.cpp index 292650ca..8aadc1d2 100644 --- a/main.cpp +++ b/main.cpp @@ -340,8 +340,8 @@ static double do_normalize(std::vector > &chain, progress.update(src->getPosition()); } progress.finish(src->getPosition()); - LOG(L"Peak value: %g\n", normalizer->getPeak()); - return normalizer->getPeak(); + LOG(L"Peak: %g (%gdB)\n", normalizer->getPeak(), util::scale_to_dB(normalizer->getPeak())); + return normalizer->getPeak(); } void build_filter_chain_sub(std::shared_ptr src, @@ -659,7 +659,7 @@ void decode_file(const std::vector > &chain, cafsink->finishWrite(AudioFilePacketTableInfo()); } else if (opts.isPeak()) { PeakSink *p = dynamic_cast(sink.get()); - LOG(L"peak: %g (%gdB)\n", p->peak(), util::scale_to_dB(p->peak())); + LOG(L"Peak: %g (%gdB)\n", p->peak(), util::scale_to_dB(p->peak())); } }