Add a hint to warn about the stereo-to-5.1 upmixers.
authorCarl Hetherington <cth@carlh.net>
Tue, 27 Feb 2018 22:36:09 +0000 (22:36 +0000)
committerCarl Hetherington <cth@carlh.net>
Tue, 27 Feb 2018 22:36:09 +0000 (22:36 +0000)
ChangeLog
src/lib/hints.cc

index 538e6c9c54d080623d8198bd9383fd1868930db5..21492e29c9ff93eeb2fb0863b5d0a6cd0fbdd962 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2018-02-27  Carl Hetherington  <cth@carlh.net>
+
+       * Add a hint about the stereo-to-5.1 upmixers being
+       `experimental'.
+
 2018-02-25  Carl Hetherington  <cth@carlh.net>
 
        * Updated es_ES translation from Manuel AC.
index b5edd7cc4adae7ab938370e26775de368ffda9fc..62e04f4994e4814fc788f4f3ac8abaf51b8f2ac3 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2016-2017 Carl Hetherington <cth@carlh.net>
+    Copyright (C) 2016-2018 Carl Hetherington <cth@carlh.net>
 
     This file is part of DCP-o-matic.
 
@@ -24,6 +24,7 @@
 #include "content.h"
 #include "video_content.h"
 #include "subtitle_content.h"
+#include "audio_processor.h"
 #include "font.h"
 #include "ratio.h"
 #include "audio_analysis.h"
@@ -76,6 +77,11 @@ get_hints (shared_ptr<const Film> film)
                hints.push_back (_("Your DCP has fewer than 6 audio channels.  This may cause problems on some projectors."));
        }
 
+       AudioProcessor const * ap = film->audio_processor();
+       if (ap && (ap->id() == "stereo-5.1-upmix-a" || ap->id() == "stereo-5.1-upmix-b")) {
+               hints.push_back (_("You are using DCP-o-matic's stereo-to-5.1 upmixer.  This is experimental and may result in poor-quality audio.  If you continue, you should listen to the resulting DCP in a cinema to make sure that it sounds good."));
+       }
+
        int flat_or_narrower = 0;
        int scope = 0;
        BOOST_FOREACH (shared_ptr<const Content> i, content) {