From 017f8aef4be84cc76dcbf2acdf865409f5cae147 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 18 Feb 2016 00:11:44 +0000 Subject: Add a couple more audio properties. --- src/lib/audio_content.cc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/lib/audio_content.cc') diff --git a/src/lib/audio_content.cc b/src/lib/audio_content.cc index 6d9c85ca2..87a1d1803 100644 --- a/src/lib/audio_content.cc +++ b/src/lib/audio_content.cc @@ -1,5 +1,5 @@ /* - Copyright (C) 2013-2015 Carl Hetherington + Copyright (C) 2013-2016 Carl Hetherington This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -36,6 +36,8 @@ using std::cout; using std::vector; using std::stringstream; using std::fixed; +using std::list; +using std::pair; using std::setprecision; using boost::shared_ptr; using boost::dynamic_pointer_cast; @@ -292,3 +294,9 @@ AudioContent::audio_channel_names () const return n; } + +void +AudioContent::add_properties (list >& p) const +{ + p.push_back (make_pair (_("DCP audio frame rate"), raw_convert (resampled_audio_frame_rate ()))); +} -- cgit v1.2.3