X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=test%2Fresampler_test.cc;h=cb5cddc9e72a6600017148935234b7711942398f;hb=5a5324ed3a381a86dfe0a6e3932c1d58fdcd596f;hp=fb4b98861c18afc65a421b3a075c4d9571a4eda1;hpb=4e83acad0c2a5c528709a175a80261b8147d3b49;p=dcpomatic.git diff --git a/test/resampler_test.cc b/test/resampler_test.cc index fb4b98861..cb5cddc9e 100644 --- a/test/resampler_test.cc +++ b/test/resampler_test.cc @@ -23,14 +23,16 @@ * to the number of samples it generates. */ -#include #include "lib/audio_buffers.h" #include "lib/resampler.h" +#include +#include #include using std::pair; using std::cout; using boost::shared_ptr; +using boost::make_shared; static void resampler_test_one (int from, int to) @@ -42,7 +44,7 @@ resampler_test_one (int from, int to) /* XXX: no longer checks anything */ for (int64_t i = 0; i < N; i += 1000) { - shared_ptr a (new AudioBuffers (1, 1000)); + shared_ptr a = make_shared (1, 1000); a->make_silent (); shared_ptr r = resamp.run (a); }