summaryrefslogtreecommitdiff
path: root/src/lib/resampler.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-06-21 23:08:53 +0100
committerCarl Hetherington <cth@carlh.net>2016-06-21 23:08:53 +0100
commita8a0dfd1b21de6c0facf965ab119833ff6f790bf (patch)
tree88bd3a7dd6d4ae56a1efa9b7443c341550759869 /src/lib/resampler.cc
parente669b562937786bf5b771c927cc03a4074b01be8 (diff)
Revert "Use make_shared<>."
Support for this seems to vary wildly across DoM's build targets. Stuff that builds on 16.04 won't build on 14.04, for example. Seems to not be worth the hassle now. This reverts commit 5a5324ed3a381a86dfe0a6e3932c1d58fdcd596f.
Diffstat (limited to 'src/lib/resampler.cc')
-rw-r--r--src/lib/resampler.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lib/resampler.cc b/src/lib/resampler.cc
index 4476d9f1f..db5552d15 100644
--- a/src/lib/resampler.cc
+++ b/src/lib/resampler.cc
@@ -24,7 +24,6 @@
#include "compose.hpp"
#include "dcpomatic_assert.h"
#include <samplerate.h>
-#include <boost/make_shared.hpp>
#include <iostream>
#include "i18n.h"
@@ -34,7 +33,6 @@ using std::pair;
using std::make_pair;
using std::runtime_error;
using boost::shared_ptr;
-using boost::make_shared;
/** @param in Input sampling rate (Hz)
* @param out Output sampling rate (Hz)
@@ -64,7 +62,7 @@ Resampler::run (shared_ptr<const AudioBuffers> in)
int in_frames = in->frames ();
int in_offset = 0;
int out_offset = 0;
- shared_ptr<AudioBuffers> resampled = make_shared<AudioBuffers> (_channels, 0);
+ shared_ptr<AudioBuffers> resampled (new AudioBuffers (_channels, 0));
while (in_frames > 0) {
@@ -138,7 +136,7 @@ Resampler::run (shared_ptr<const AudioBuffers> in)
shared_ptr<const AudioBuffers>
Resampler::flush ()
{
- shared_ptr<AudioBuffers> out = make_shared<AudioBuffers> (_channels, 0);
+ shared_ptr<AudioBuffers> out (new AudioBuffers (_channels, 0));
int out_offset = 0;
int64_t const output_size = 65536;