summaryrefslogtreecommitdiff
path: root/src/lib/audio_point.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-12-30 15:43:14 +0100
committerCarl Hetherington <cth@carlh.net>2025-01-05 12:58:13 +0100
commitb03f2277a205ff7e7cdaa12c6e52322ea474a7af (patch)
treed6067668105b2f0c6d0651bd1b8bd4186e0b8893 /src/lib/audio_point.cc
parente46ff5f1cf168fb73ea930f3e8469165e5f6644e (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_point.cc')
-rw-r--r--src/lib/audio_point.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/lib/audio_point.cc b/src/lib/audio_point.cc
index 036904520..efd342dd1 100644
--- a/src/lib/audio_point.cc
+++ b/src/lib/audio_point.cc
@@ -20,15 +20,14 @@
#include "audio_point.h"
-#include <dcp/raw_convert.h>
#include <dcp/warnings.h>
LIBDCP_DISABLE_WARNINGS
#include <libxml++/libxml++.h>
LIBDCP_ENABLE_WARNINGS
+#include <fmt/format.h>
using std::string;
-using dcp::raw_convert;
AudioPoint::AudioPoint ()
@@ -72,6 +71,6 @@ AudioPoint::operator= (AudioPoint const & other)
void
AudioPoint::as_xml (xmlpp::Element* parent) const
{
- cxml::add_text_child(parent, "Peak", raw_convert<string>(_data[PEAK]));
- cxml::add_text_child(parent, "RMS", raw_convert<string>(_data[RMS]));
+ cxml::add_text_child(parent, "Peak", fmt::to_string(_data[PEAK]));
+ cxml::add_text_child(parent, "RMS", fmt::to_string(_data[RMS]));
}