X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Flib%2Fupmixer_a.cc;h=ca42cd3867ab7e935b1713ea83d36f51a810a7c9;hp=e390487d44c92887ff3d7cfdb4185e29e853719e;hb=5eb8b5c3a1566aef638e9d9df03b88d320735092;hpb=5a5324ed3a381a86dfe0a6e3932c1d58fdcd596f diff --git a/src/lib/upmixer_a.cc b/src/lib/upmixer_a.cc index e390487d4..ca42cd386 100644 --- a/src/lib/upmixer_a.cc +++ b/src/lib/upmixer_a.cc @@ -21,7 +21,6 @@ #include "upmixer_a.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; UpmixerA::UpmixerA (int sampling_rate) : _left (0.02, 1900.0 / sampling_rate, 4800.0 / sampling_rate) @@ -63,7 +61,7 @@ UpmixerA::out_channels () const shared_ptr UpmixerA::clone (int sampling_rate) const { - return make_shared (sampling_rate); + return shared_ptr (new UpmixerA (sampling_rate)); } shared_ptr @@ -75,7 +73,7 @@ UpmixerA::run (shared_ptr in, int channels) /* Mix of L and R; -6dB down in amplitude (3dB in terms of power) */ shared_ptr in_LR = in_L->clone (); - in_LR->accumulate_frames (in_R.get(), 0, 0, in_R->frames ()); + in_LR->accumulate_frames (in_R.get(), in_R->frames(), 0, 0); in_LR->apply_gain (-6); /* Run filters */ @@ -87,7 +85,7 @@ UpmixerA::run (shared_ptr in, int channels) all_out.push_back (_ls.run (in_L)); all_out.push_back (_rs.run (in_R)); - shared_ptr out = make_shared (channels, in->frames ()); + shared_ptr out (new AudioBuffers (channels, in->frames ())); int const N = min (channels, 6); for (int i = 0; i < N; ++i) {