X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Faudio_analysis.h;h=824472dda08c80daf1037a0f5635b5db7eefa556;hb=2d5b8cdde08044d323aa7193dfac6c9f8bca7131;hp=6e0e2b78a8cf7a5a52f72586259eefb6eb238450;hpb=dd7cf1ef6e860243b80f4c47a99393244f63a3d5;p=dcpomatic.git diff --git a/src/lib/audio_analysis.h b/src/lib/audio_analysis.h index 6e0e2b78a..824472dda 100644 --- a/src/lib/audio_analysis.h +++ b/src/lib/audio_analysis.h @@ -17,12 +17,12 @@ */ -#ifndef DVDOMATIC_AUDIO_ANALYSIS_H -#define DVDOMATIC_AUDIO_ANALYSIS_H +#ifndef DCPOMATIC_AUDIO_ANALYSIS_H +#define DCPOMATIC_AUDIO_ANALYSIS_H -#include #include #include +#include class AudioPoint { @@ -34,9 +34,11 @@ public: }; AudioPoint (); - AudioPoint (std::istream &); + AudioPoint (FILE *); + AudioPoint (AudioPoint const &); + AudioPoint& operator= (AudioPoint const &); - void write (std::ostream &) const; + void write (FILE *) const; float& operator[] (int t) { return _data[t]; @@ -46,11 +48,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,7 +60,7 @@ public: int points (int c) const; int channels () const; - void write (std::string); + void write (boost::filesystem::path); private: std::vector > _data;