X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Flib%2Fupmixer_b.cc;h=90e1267cdb7af8021ac9ab16484ee340e24b3c28;hp=65452424ad066dcf0bd8551414e66f43d4552ba2;hb=a8a0dfd1b21de6c0facf965ab119833ff6f790bf;hpb=e669b562937786bf5b771c927cc03a4074b01be8 diff --git a/src/lib/upmixer_b.cc b/src/lib/upmixer_b.cc index 65452424a..90e1267cd 100644 --- a/src/lib/upmixer_b.cc +++ b/src/lib/upmixer_b.cc @@ -21,7 +21,6 @@ #include "upmixer_b.h" #include "audio_buffers.h" #include "audio_mapping.h" -#include #include "i18n.h" @@ -29,7 +28,6 @@ using std::string; using std::min; using std::vector; using boost::shared_ptr; -using boost::make_shared; UpmixerB::UpmixerB (int sampling_rate) : _lfe (0.01, 150.0 / sampling_rate) @@ -60,13 +58,13 @@ UpmixerB::out_channels () const shared_ptr UpmixerB::clone (int sampling_rate) const { - return make_shared (sampling_rate); + return shared_ptr (new UpmixerB (sampling_rate)); } shared_ptr UpmixerB::run (shared_ptr in, int channels) { - shared_ptr out = make_shared (channels, in->frames()); + shared_ptr out (new AudioBuffers (channels, in->frames())); /* L + R minus 6dB (in terms of amplitude) */ shared_ptr in_LR = in->channel(0); @@ -96,7 +94,7 @@ UpmixerB::run (shared_ptr in, int channels) shared_ptr S; if (channels > 4) { /* Ls is L - R with some delay */ - shared_ptr sub = make_shared (1, in->frames()); + shared_ptr sub (new AudioBuffers (1, in->frames())); sub->copy_channel_from (in.get(), 0, 0); float* p = sub->data (0); float const * q = in->data (1);