More cycle-breaking of shared_ptr for decoder / player.
[dcpomatic.git] / src / lib / audio_analysis.h
index 1c668b9c223daa54cbfc91e2bdadc93066148462..ec6905105934cf5cc78b3a48d736a98806c51001 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>
 
 class AudioPoint
 {
@@ -33,10 +34,11 @@ public:
        };
 
        AudioPoint ();
+       AudioPoint (std::istream &);
 
        void write (std::ostream &) const;
        
-       float& operator[] (Type t) {
+       float& operator[] (int t) {
                return _data[t];
        }
 
@@ -48,8 +50,14 @@ class AudioAnalysis
 {
 public:
        AudioAnalysis (int c);
+       AudioAnalysis (std::string);
 
        void add_point (int c, AudioPoint const & p);
+       
+       AudioPoint get_point (int c, int p) const;
+       int points (int c) const;
+       int channels () const;
+
        void write (std::string);
 
 private: