Emit no audio from DCPs if none is mapped
[dcpomatic.git] / src / lib / playlist.h
index 0dd2370a8c6e36c8ba805190a3524c4f06031e6a..e2662eb4581d78293f7d344c6e35619eaae9c400 100644 (file)
@@ -24,8 +24,9 @@
 
 
 #include "change_signaller.h"
+#include "dcpomatic_time.h"
 #include "frame_rate_change.h"
-#include "util.h"
+#include "types.h"
 #include <libcxml/cxml.h>
 #include <boost/signals2.hpp>
 #include <boost/thread.hpp>
 class Film;
 
 
-struct ContentSorter
-{
-       bool operator() (std::shared_ptr<Content> a, std::shared_ptr<Content> b);
-};
-
-
 /** @class Playlist
  *  @brief A set of Content objects with knowledge of how they should be arranged into
  *  a DCP.
@@ -48,7 +43,8 @@ struct ContentSorter
 class Playlist
 {
 public:
-       Playlist ();
+       Playlist() = default;
+
        ~Playlist ();
 
        Playlist (Playlist const&) = delete;
@@ -83,7 +79,7 @@ public:
 
        void repeat (std::shared_ptr<const Film> film, ContentList, int);
 
-       /** Emitted when content has been added to or removed from the playlist; implies OrderChanged */
+       /** Emitted when content has been added to or removed from the playlist; implies OrderChange */
        mutable boost::signals2::signal<void (ChangeType)> Change;
        mutable boost::signals2::signal<void ()> OrderChange;
        /** Emitted when the length might have changed; may sometimes be emitted when it has not */
@@ -97,7 +93,7 @@ private:
        void reconnect (std::shared_ptr<const Film> film);
 
        mutable boost::mutex _mutex;
-       /** List of content.  Kept sorted in position order. */
+       /** List of content, kept sorted by ContentSorter() */
        ContentList _content;
        bool _sequence = true;
        bool _sequencing = false;