/*
- Copyright (C) 2013-2015 Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2013-2016 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
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;
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 ())));
+}
/*
- Copyright (C) 2013-2015 Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2013-2016 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
std::string processing_description () const;
+protected:
+
+ void add_properties (std::list<std::pair<std::string, std::string> > &) const;
+
private:
/** Gain to apply to audio in dB */
double _audio_gain;
/*
- Copyright (C) 2013-2015 Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2013-2016 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
FFmpegContent::add_properties (list<pair<string, string> >& p) const
{
VideoContent::add_properties (p);
+ AudioContent::add_properties (p);
if (_bits_per_pixel) {
int const sub = 219 * pow (2, _bits_per_pixel.get() - 8);
void
SingleStreamAudioContent::add_properties (list<pair<string, string> >& p) const
{
- /* XXX: this could be better wrt audio streams */
p.push_back (make_pair (_("Audio channels"), raw_convert<string> (audio_stream()->channels ())));
+ p.push_back (make_pair (_("Content audio frame rate"), raw_convert<string> (audio_stream()->frame_rate ())));
+
+ AudioContent::add_properties (p);
}