diff options
| author | Carl Hetherington <cth@carlh.net> | 2023-07-31 00:34:22 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-08-06 22:05:03 +0200 |
| commit | 07852de51045125fa94db457c5775c53df5995b4 (patch) | |
| tree | b892e1dae949efd89fcd8afa9c5477e6b209c070 /src/lib/hints.cc | |
| parent | e8749cfcef2b9434377e73c66a79755691ebc064 (diff) | |
Add hint about audio channel count.
Diffstat (limited to 'src/lib/hints.cc')
| -rw-r--r-- | src/lib/hints.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/lib/hints.cc b/src/lib/hints.cc index d472dfc03..3558d7a25 100644 --- a/src/lib/hints.cc +++ b/src/lib/hints.cc @@ -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)); + } +} + |
