Basics of Atmos content support; can be added to project and appears in timeline.
[dcpomatic.git] / src / lib / content_factory.cc
index 706c7975403b9110d10e1c834a325216d6b18667..df803809f537565af2afb319e8b312c4bccc3495 100644 (file)
@@ -24,6 +24,7 @@
 #include "ffmpeg_content.h"
 #include "audio_content.h"
 #include "image_content.h"
+#include "atmos_mxf_content.h"
 #include "text_subtitle_content.h"
 #include "dcp_content.h"
 #include "dcp_subtitle_content.h"
@@ -90,6 +91,8 @@ content_factory (shared_ptr<const Film> film, cxml::NodePtr node, int version, l
                content.reset (new DCPSubtitleContent (film, node, version));
        } else if (type == "VideoMXF") {
                content.reset (new VideoMXFContent (film, node, version));
+       } else if (type == "AtmosMXF") {
+               content.reset (new AtmosMXFContent (film, node, version));
        }
 
        return content;
@@ -167,6 +170,8 @@ content_factory (shared_ptr<const Film> film, boost::filesystem::path path)
                        content.reset (new DCPSubtitleContent (film, path));
                } else if (ext == ".mxf" && VideoMXFContent::valid_mxf (path)) {
                        content.reset (new VideoMXFContent (film, path));
+               } else if (ext == ".mxf" && AtmosMXFContent::valid_mxf (path)) {
+                       content.reset (new AtmosMXFContent (film, path));
                }
 
                if (!content) {