summaryrefslogtreecommitdiff
path: root/src/lib/audio_content.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/audio_content.cc')
-rw-r--r--src/lib/audio_content.cc11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/lib/audio_content.cc b/src/lib/audio_content.cc
index ce9e5c945..142dc0855 100644
--- a/src/lib/audio_content.cc
+++ b/src/lib/audio_content.cc
@@ -20,7 +20,6 @@
#include "audio_content.h"
-#include "compose.hpp"
#include "config.h"
#include "constants.h"
#include "exceptions.h"
@@ -144,7 +143,7 @@ AudioContent::technical_summary () const
{
string s = "audio: ";
for (auto i: streams()) {
- s += String::compose ("stream channels %1 rate %2 ", i->channels(), i->frame_rate());
+ s += fmt::format("stream channels {} rate {} ", i->channels(), i->frame_rate());
}
return s;
@@ -257,14 +256,14 @@ AudioContent::processing_description (shared_ptr<const Film> film) const
}
if (not_resampled && resampled) {
- return String::compose (_("Some audio will be resampled to %1Hz"), resampled_frame_rate(film));
+ return fmt::format(_("Some audio will be resampled to {}Hz"), resampled_frame_rate(film));
}
if (!not_resampled && resampled) {
if (same) {
- return String::compose (_("Audio will be resampled from %1Hz to %2Hz"), common_frame_rate.get(), resampled_frame_rate(film));
+ return fmt::format(_("Audio will be resampled from {}Hz to {}Hz"), common_frame_rate.get(), resampled_frame_rate(film));
} else {
- return String::compose (_("Audio will be resampled to %1Hz"), resampled_frame_rate(film));
+ return fmt::format(_("Audio will be resampled to {}Hz"), resampled_frame_rate(film));
}
}
@@ -282,7 +281,7 @@ AudioContent::channel_names () const
int stream = 1;
for (auto i: streams()) {
for (int j = 0; j < i->channels(); ++j) {
- n.push_back (NamedChannel(String::compose ("%1:%2", stream, j + 1), index++));
+ n.push_back (NamedChannel(fmt::format("{}:{}", stream, j + 1), index++));
}
++stream;
}