diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-04-19 23:13:29 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-04-21 00:52:07 +0200 |
| commit | b413837ae91f4db1c2936f092b4327bbc0418f42 (patch) | |
| tree | 8b7e22f6148919b4b5ba7546b188bd62970992d4 /src/lib/hints.h | |
| parent | a7dab6e86e66269df937650a6e5ed7f63a3757ac (diff) | |
Analyse audio (if required) when making hints (#1924).
Otherwise if you haven't run a whole-project audio analysis you
don't get the hints about audio levels being too high.
Diffstat (limited to 'src/lib/hints.h')
| -rw-r--r-- | src/lib/hints.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/hints.h b/src/lib/hints.h index c692f6fca..06155f434 100644 --- a/src/lib/hints.h +++ b/src/lib/hints.h @@ -18,6 +18,7 @@ */ +#include "audio_analyser.h" #include "signaller.h" #include "player_text.h" #include "types.h" @@ -55,6 +56,7 @@ private: void thread (); void hint (std::string h); + void audio (std::shared_ptr<AudioBuffers> audio, dcpomatic::DCPTime time); void text (PlayerText text, TextType type, boost::optional<DCPTextTrack> track, dcpomatic::DCPTimePeriod period); void closed_caption (PlayerText text, dcpomatic::DCPTimePeriod period); void open_subtitle (PlayerText text, dcpomatic::DCPTimePeriod period); @@ -71,7 +73,7 @@ private: void check_speed_up (); void check_vob (); void check_3d_in_2d (); - void check_loudness (); + bool check_loudness (); void check_ffec_and_ffmc_in_smpte_feature (); void check_out_of_range_markers (); void check_text_languages (); @@ -83,6 +85,8 @@ private: */ std::shared_ptr<Writer> _writer; + AudioAnalyser _analyser; + bool _long_ccap = false; bool _overlap_ccap = false; bool _too_many_ccap_lines = false; |
