X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;ds=inline;f=src%2Flib%2Fsingle_stream_audio_content.cc;h=38623422d15e8e18f3b58224bfb48a6ada0cdbf1;hb=80f27f81cc7991f52e4a41c7f687681fd9c15a65;hp=cf2dcc1bd6210a9e78d4b5ead98c8bbb968aeadf;hpb=e60bb3e51bd1508b149e6b8f6608f09b5196ae26;p=dcpomatic.git diff --git a/src/lib/single_stream_audio_content.cc b/src/lib/single_stream_audio_content.cc index cf2dcc1bd..38623422d 100644 --- a/src/lib/single_stream_audio_content.cc +++ b/src/lib/single_stream_audio_content.cc @@ -22,9 +22,13 @@ #include "film.h" #include "raw_convert.h" +#include "i18n.h" + using std::string; using std::cout; using std::vector; +using std::list; +using std::pair; using boost::shared_ptr; SingleStreamAudioContent::SingleStreamAudioContent (shared_ptr film) @@ -81,3 +85,10 @@ SingleStreamAudioContent::audio_streams () const s.push_back (_audio_stream); return s; } + +void +SingleStreamAudioContent::add_properties (list >& p) const +{ + /* XXX: this could be better wrt audio streams */ + p.push_back (make_pair (_("Audio channels"), raw_convert (audio_stream()->channels ()))); +}