projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add a couple more audio properties.
[dcpomatic.git]
/
src
/
lib
/
audio_content.cc
diff --git
a/src/lib/audio_content.cc
b/src/lib/audio_content.cc
index 6d9c85ca20201c2719931216b114428163abb9ad..87a1d180343f563bb5fccb17926c7be2b8dbb84e 100644
(file)
--- a/
src/lib/audio_content.cc
+++ b/
src/lib/audio_content.cc
@@
-1,5
+1,5
@@
/*
/*
- Copyright (C) 2013-201
5
Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2013-201
6
Carl Hetherington <cth@carlh.net>
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
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::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;
using std::setprecision;
using boost::shared_ptr;
using boost::dynamic_pointer_cast;
@@
-292,3
+294,9
@@
AudioContent::audio_channel_names () const
return n;
}
return n;
}
+
+void
+AudioContent::add_properties (list<pair<string, string> >& p) const
+{
+ p.push_back (make_pair (_("DCP audio frame rate"), raw_convert<string> (resampled_audio_frame_rate ())));
+}