FFmpegContent does not need audio_length().
[dcpomatic.git] / src / lib / single_stream_audio_content.h
index 9abc25e5617fd3752527fbbf57677ebc6e7ae36a..944d887b0ba4ae9ec293efe9e6b1385697e9372c 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2014 Carl Hetherington <cth@carlh.net>
+    Copyright (C) 2014-2015 Carl Hetherington <cth@carlh.net>
 
     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
@@ -40,13 +40,12 @@ public:
 
        void as_xml (xmlpp::Node* node) const;
 
-       /* AudioContent */
        int audio_channels () const {
                boost::mutex::scoped_lock lm (_mutex);
                return _audio_channels;
        }
-       
-       ContentTime audio_length () const {
+
+       Frame audio_length () const {
                boost::mutex::scoped_lock lm (_mutex);
                return _audio_length;
        }
@@ -67,7 +66,7 @@ public:
 
 protected:
        int _audio_channels;
-       ContentTime _audio_length;
+       Frame _audio_length;
        int _audio_frame_rate;
        AudioMapping _audio_mapping;
 };