Add hint about audio channel count.
[dcpomatic.git] / src / lib / hints.cc
index d472dfc0394180933698ba089f09373fce74bbbb..3558d7a25c1dceb019db44218f0c98b8ee4c4907 100644 (file)
@@ -399,6 +399,7 @@ try
        check_out_of_range_markers ();
        check_subtitle_languages();
        check_audio_language ();
+       check_8_or_16_audio_channels();
 
        if (check_loudness_done) {
                emit (bind(boost::ref(Progress), _("Examining subtitles and closed captions")));
@@ -705,3 +706,13 @@ Hints::check_certificates ()
        }
 }
 
+
+void
+Hints::check_8_or_16_audio_channels()
+{
+       auto const channels = film()->audio_channels();
+       if (channels != 8 && channels != 16) {
+               hint(String::compose(_("Your DCP has %1 audio channels, rather than 8 or 16.  This may cause some distributors to raise QC errors when they check your DCP.  To avoid this, set the DCP audio channels to 8 or 16."), channels));
+       }
+}
+