Separate AudioPoint.
[dcpomatic.git] / src / lib / audio_analysis.h
index 6c0be69873f2b2b1bcd7d81bca83498e4a54d424..5e71705bf3b2dbb25e1ce2ce038e41a4401b28a5 100644 (file)
@@ -21,6 +21,7 @@
 #define DCPOMATIC_AUDIO_ANALYSIS_H
 
 #include "dcpomatic_time.h"
+#include "audio_point.h"
 #include <libcxml/cxml.h>
 #include <boost/optional.hpp>
 #include <boost/filesystem.hpp>
@@ -30,30 +31,6 @@ namespace xmlpp {
        class Element;
 }
 
-class AudioPoint
-{
-public:
-       enum Type {
-               PEAK,
-               RMS,
-               COUNT
-       };
-
-       AudioPoint ();
-       AudioPoint (cxml::ConstNodePtr node);
-       AudioPoint (AudioPoint const &);
-       AudioPoint& operator= (AudioPoint const &);
-
-       void as_xml (xmlpp::Element *) const;
-
-       float& operator[] (int t) {
-               return _data[t];
-       }
-
-private:
-       float _data[COUNT];
-};
-
 class AudioAnalysis : public boost::noncopyable
 {
 public: