diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-12-30 15:43:14 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-01-05 12:58:13 +0100 |
| commit | b03f2277a205ff7e7cdaa12c6e52322ea474a7af (patch) | |
| tree | d6067668105b2f0c6d0651bd1b8bd4186e0b8893 /src/lib/audio_mapping.cc | |
| parent | e46ff5f1cf168fb73ea930f3e8469165e5f6644e (diff) | |
Bump libdcp for raw_convert changes.
raw_convert<string> is gone, so here we use fmt::{to_string,format} instead.
Other raw_converts now use fast_float.
Diffstat (limited to 'src/lib/audio_mapping.cc')
| -rw-r--r-- | src/lib/audio_mapping.cc | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/lib/audio_mapping.cc b/src/lib/audio_mapping.cc index 37929001d..939a03414 100644 --- a/src/lib/audio_mapping.cc +++ b/src/lib/audio_mapping.cc @@ -31,6 +31,7 @@ LIBDCP_DISABLE_WARNINGS #include <libxml++/libxml++.h> LIBDCP_ENABLE_WARNINGS +#include <fmt/format.h> #include <boost/regex.hpp> #include <iostream> @@ -225,15 +226,15 @@ AudioMapping::as_xml(xmlpp::Element* element) const auto const input = input_channels(); auto const output = output_channels(); - cxml::add_text_child(element, "InputChannels", raw_convert<string>(input)); - cxml::add_text_child(element, "OutputChannels", raw_convert<string>(output)); + cxml::add_text_child(element, "InputChannels", fmt::to_string(input)); + cxml::add_text_child(element, "OutputChannels", fmt::to_string(output)); for (int c = 0; c < input; ++c) { for (int d = 0; d < output; ++d) { auto t = cxml::add_child(element, "Gain"); - t->set_attribute("input", raw_convert<string>(c)); - t->set_attribute("output", raw_convert<string>(d)); - t->add_child_text (raw_convert<string> (get (c, d))); + t->set_attribute("input", fmt::to_string(c)); + t->set_attribute("output", fmt::to_string(d)); + t->add_child_text(fmt::to_string(get(c, d))); } } } |
