Various bits and pieces.
[dcpomatic.git] / src / lib / null_content.h
index e680087826d571f523c8a317012228ea8428d53f..d4a3b7371ed8514b75372cc08626784939686b71 100644 (file)
 
 #include <string>
 #include <boost/shared_ptr.hpp>
-#include "content.h"
+#include "video_content.h"
+#include "audio_content.h"
 
 class NullContent : public VideoContent, public AudioContent
 {
 public:
-       NullContent (Time, Time, boost::shared_ptr<const Film>);
+       NullContent (boost::shared_ptr<const Film>, Time, Time);
 
        std::string summary () const {
                return "";
@@ -48,23 +49,19 @@ public:
                return _audio_length;
        }
        
-        int content_audio_frame_rate () const {
-               return _content_audio_frame_rate;
-       }
+        int content_audio_frame_rate () const;
        
-       int output_audio_frame_rate (boost::shared_ptr<const Film> f) const {
-               return f->dcp_audio_frame_rate ();
-       }
+       int output_audio_frame_rate () const;
        
        AudioMapping audio_mapping () const {
                return AudioMapping ();
        }
        
-       Time length (boost::shared_ptr<const Film>) const {
+       Time length () const {
                return _length;
        }
 
 private:
        ContentAudioFrame _audio_length;
-       ContentAudioFrame _content_audio_frame_rate;
+       Time _length;
 };