diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-05-23 17:18:49 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-05-23 17:18:49 +0100 |
| commit | 64a2f1bb6a7b972607fa363631ef7a47444e8217 (patch) | |
| tree | 020c028a93f113e372e70f485857ce04dea5db3d /src/lib/null_content.h | |
| parent | 8c6fe8e1e8c8f6d5932606f2a5b6e1b87681ae38 (diff) | |
Various bits and pieces.
Diffstat (limited to 'src/lib/null_content.h')
| -rw-r--r-- | src/lib/null_content.h | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/src/lib/null_content.h b/src/lib/null_content.h index e68008782..d4a3b7371 100644 --- a/src/lib/null_content.h +++ b/src/lib/null_content.h @@ -19,12 +19,13 @@ #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; }; |
