summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-02-27 22:36:09 +0000
committerCarl Hetherington <cth@carlh.net>2018-03-13 11:56:22 +0000
commit3db71097a7d82937e5be4a8ca8be90a93a7bd723 (patch)
tree46f75d25f3e460dd26d63bf096bcab13d53a2b06 /src/lib
parent7aae36000e3506a1f86efd7672a88d7e25cf7eeb (diff)
Add a hint to warn about the stereo-to-5.1 upmixers.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/hints.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/hints.cc b/src/lib/hints.cc
index b5edd7cc4..62e04f499 100644
--- a/src/lib/hints.cc
+++ b/src/lib/hints.cc
@@ -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) {