Some missing copy constructors / operator= / noncopyable.
[dcpomatic.git] / src / lib / audio_analysis.h
index a8cfbdeca81a6132afa74004c2a36dc429b2e4db..cfc170c846ae2af87e12645e3dd84e4ba7e9c13a 100644 (file)
 
 */
 
-#ifndef DVDOMATIC_AUDIO_ANALYSIS_H
-#define DVDOMATIC_AUDIO_ANALYSIS_H
+#ifndef DCPOMATIC_AUDIO_ANALYSIS_H
+#define DCPOMATIC_AUDIO_ANALYSIS_H
 
 #include <iostream>
 #include <vector>
 #include <list>
+#include <boost/filesystem.hpp>
 
 class AudioPoint
 {
@@ -35,6 +36,8 @@ public:
 
        AudioPoint ();
        AudioPoint (std::istream &);
+       AudioPoint (AudioPoint const &);
+       AudioPoint& operator= (AudioPoint const &);
 
        void write (std::ostream &) const;
        
@@ -46,11 +49,11 @@ private:
        float _data[COUNT];
 };
 
-class AudioAnalysis
+class AudioAnalysis : public boost::noncopyable
 {
 public:
        AudioAnalysis (int c);
-       AudioAnalysis (std::string);
+       AudioAnalysis (boost::filesystem::path);
 
        void add_point (int c, AudioPoint const & p);
        
@@ -58,9 +61,7 @@ public:
        int points (int c) const;
        int channels () const;
 
-       void write (std::string);
-
-       static float smooth (std::list<float> const &, AudioPoint::Type);
+       void write (boost::filesystem::path);
 
 private:
        std::vector<std::vector<AudioPoint> > _data;