diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-08-26 22:36:25 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-08-26 22:36:25 +0100 |
| commit | e3c6a3c99f829174f69fc767b3b53f41053d1815 (patch) | |
| tree | 67ced23ca4c383d2831d70c17e35d3f7f9221e8c /src/lib/audio_analysis.h | |
| parent | 96f06076d51f6ca57b261a25c0d7f2e3f1852250 (diff) | |
Separate AudioPoint.
Diffstat (limited to 'src/lib/audio_analysis.h')
| -rw-r--r-- | src/lib/audio_analysis.h | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/src/lib/audio_analysis.h b/src/lib/audio_analysis.h index 6c0be6987..5e71705bf 100644 --- a/src/lib/audio_analysis.h +++ b/src/lib/audio_analysis.h @@ -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: |
