No-op: whitespace.
[dcpomatic.git] / src / lib / mid_side_decoder.cc
index 8d5dc1875b76c2bf38e66181b206c588fecd0b84..eb87d245b54b7dc6168039157810ad2b68dbb91a 100644 (file)
 #include "mid_side_decoder.h"
 #include "audio_buffers.h"
 #include "audio_mapping.h"
-#include <boost/make_shared.hpp>
 
 #include "i18n.h"
 
 using std::string;
 using std::min;
 using std::vector;
-using boost::shared_ptr;
-using boost::make_shared;
+using std::shared_ptr;
 
 string
 MidSideDecoder::name () const
@@ -52,14 +50,14 @@ MidSideDecoder::out_channels () const
 shared_ptr<AudioProcessor>
 MidSideDecoder::clone (int) const
 {
-       return make_shared<MidSideDecoder> ();
+       return shared_ptr<AudioProcessor> (new MidSideDecoder ());
 }
 
 shared_ptr<AudioBuffers>
 MidSideDecoder::run (shared_ptr<const AudioBuffers> in, int channels)
 {
        int const N = min (channels, 3);
-       shared_ptr<AudioBuffers> out = make_shared<AudioBuffers> (channels, in->frames ());
+       shared_ptr<AudioBuffers> out (new AudioBuffers (channels, in->frames ()));
        for (int i = 0; i < in->frames(); ++i) {
                float const left = in->data()[0][i];
                float const right = in->data()[1][i];
@@ -92,13 +90,11 @@ MidSideDecoder::make_audio_mapping_default (AudioMapping& mapping) const
        }
 }
 
-vector<string>
+vector<NamedChannel>
 MidSideDecoder::input_names () const
 {
-       vector<string> n;
-
-       n.push_back (_("Left"));
-       n.push_back (_("Right"));
-
+       vector<NamedChannel> n;
+       n.push_back (NamedChannel(_("Left"), 0));
+       n.push_back (NamedChannel(_("Right"), 1));
        return n;
 }