summaryrefslogtreecommitdiff
path: root/src/lib/resampler.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-07-10 02:02:19 +0200
committerCarl Hetherington <cth@carlh.net>2021-07-10 02:02:19 +0200
commit5b0e331380c83ec9835e8aa42fd342b2f0ad275d (patch)
tree13c27f0b3420f5c3a268a5a22a9172675fdc370c /src/lib/resampler.cc
parent5d838bc863a7569e68546026c109607fd5a94362 (diff)
Use dcp::compose rather than our own.compose
Diffstat (limited to 'src/lib/resampler.cc')
-rw-r--r--src/lib/resampler.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/resampler.cc b/src/lib/resampler.cc
index 056b2e1ee..30164ca21 100644
--- a/src/lib/resampler.cc
+++ b/src/lib/resampler.cc
@@ -22,8 +22,8 @@
#include "resampler.h"
#include "audio_buffers.h"
#include "exceptions.h"
-#include "compose.hpp"
#include "dcpomatic_assert.h"
+#include <dcp/compose.h>
#include <samplerate.h>
#include <iostream>
#include <cmath>
@@ -51,7 +51,7 @@ Resampler::Resampler (int in, int out, int channels)
int error;
_src = src_new (SRC_SINC_BEST_QUALITY, _channels, &error);
if (!_src) {
- throw runtime_error (String::compose(N_("could not create sample-rate converter (%1)"), error));
+ throw runtime_error (dcp::compose(N_("could not create sample-rate converter (%1)"), error));
}
}
@@ -73,7 +73,7 @@ Resampler::set_fast ()
int error;
_src = src_new (SRC_LINEAR, _channels, &error);
if (!_src) {
- throw runtime_error (String::compose(N_("could not create sample-rate converter (%1)"), error));
+ throw runtime_error (dcp::compose(N_("could not create sample-rate converter (%1)"), error));
}
}
@@ -117,7 +117,7 @@ Resampler::run (shared_ptr<const AudioBuffers> in)
int const r = src_process (_src, &data);
if (r) {
throw EncodeError (
- String::compose (
+ dcp::compose (
N_("could not run sample-rate converter (%1) [processing %2 to %3, %4 channels]"),
src_strerror (r),
in_frames,
@@ -173,7 +173,7 @@ Resampler::flush ()
int const r = src_process (_src, &data);
if (r) {
- throw EncodeError (String::compose(N_("could not run sample-rate converter (%1)"), src_strerror(r)));
+ throw EncodeError (dcp::compose(N_("could not run sample-rate converter (%1)"), src_strerror(r)));
}
out->ensure_size (out_offset + data.output_frames_gen);