Some missing copy constructors / operator= / noncopyable.
[dcpomatic.git] / src / lib / audio_analysis.cc
index e1251662089bd543fc3d713eadb8748ca37c8a9d..bc59bcccaa56539a6f8a4a1728c2d9e50e9e1a50 100644 (file)
@@ -48,6 +48,27 @@ AudioPoint::AudioPoint (istream& s)
        }
 }
 
+AudioPoint::AudioPoint (AudioPoint const & other)
+{
+       for (int i = 0; i < COUNT; ++i) {
+               _data[i] = other._data[i];
+       }
+}
+
+AudioPoint &
+AudioPoint::operator= (AudioPoint const & other)
+{
+       if (this == &other) {
+               return *this;
+       }
+       
+       for (int i = 0; i < COUNT; ++i) {
+               _data[i] = other._data[i];
+       }
+
+       return *this;
+}
+
 void
 AudioPoint::write (ostream& s) const
 {