summaryrefslogtreecommitdiff
path: root/src/lib/audio_decoder.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-07-09 22:53:27 +0200
committerCarl Hetherington <cth@carlh.net>2025-07-10 20:50:32 +0200
commit62c34b28567a097e8f22576e7d7891bd3dbe0ac0 (patch)
tree2a0440ed2bdb58c608582b75da6c877527dd6bda /src/lib/audio_decoder.cc
parent2c499921a9f8615c8368d8161cb43c9a93c67311 (diff)
Replace String::compose with fmt.
sed -i "/Plural-Forms/n;/%100/n;/scanf/n;s/%[123456789]/{}/g" src/lib/*.cc src/lib/*.h src/wx/*.cc src/tools/*.cc src/lib/po/*.po src/wx/po/*.po src/tools/po/*.po test/*.cc sed -i "s/String::compose */fmt::format/g" src/lib/*.cc src/lib/*.h src/wx/*.cc src/tools/*.cc test/*.cc
Diffstat (limited to 'src/lib/audio_decoder.cc')
-rw-r--r--src/lib/audio_decoder.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/audio_decoder.cc b/src/lib/audio_decoder.cc
index 60b0f07ad..d66858c29 100644
--- a/src/lib/audio_decoder.cc
+++ b/src/lib/audio_decoder.cc
@@ -84,7 +84,7 @@ AudioDecoder::emit(shared_ptr<const Film> film, AudioStreamPtr stream, shared_pt
if (need_reset) {
LOG_GENERAL (
- "Reset audio position: was %1, new data at %2, slack: %3 frames (more than threshold %4)",
+ "Reset audio position: was {}, new data at {}, slack: {} frames (more than threshold {})",
_positions[stream],
time.frames_round(resampled_rate),
std::abs(_positions[stream] - time.frames_round(resampled_rate)),
@@ -107,7 +107,7 @@ AudioDecoder::emit(shared_ptr<const Film> film, AudioStreamPtr stream, shared_pt
} else {
if (stream->frame_rate() != resampled_rate) {
LOG_GENERAL (
- "Creating new resampler from %1 to %2 with %3 channels",
+ "Creating new resampler from {} to {} with {} channels",
stream->frame_rate(),
resampled_rate,
stream->channels()
@@ -128,7 +128,7 @@ AudioDecoder::emit(shared_ptr<const Film> film, AudioStreamPtr stream, shared_pt
* here.
*/
if (resampler->channels() != data->channels()) {
- LOG_WARNING("Received audio data with an unexpected channel count of %1 instead of %2", data->channels(), resampler->channels());
+ LOG_WARNING("Received audio data with an unexpected channel count of {} instead of {}", data->channels(), resampler->channels());
auto data_copy = data->clone();
data_copy->set_channels(resampler->channels());
data = resampler->run(data_copy);