/*
- 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
#include "audio_stream.h"
#include "audio_mapping.h"
-namespace cxml {
- class Node;
-}
-
/** @class AudioContentProperty
* @brief Names for properties of AudioContent.
*/
static int const AUDIO_STREAMS;
static int const AUDIO_GAIN;
static int const AUDIO_DELAY;
+ static int const AUDIO_VIDEO_FRAME_RATE;
};
/** @class AudioContent
AudioMapping audio_mapping () const;
void set_audio_mapping (AudioMapping);
- boost::filesystem::path audio_analysis_path () const;
int resampled_audio_frame_rate () const;
bool has_rate_above_48k () const;
std::vector<std::string> audio_channel_names () const;
- boost::signals2::connection analyse_audio (boost::function<void()>);
-
void set_audio_gain (double);
void set_audio_delay (int);
-
+
double audio_gain () const {
boost::mutex::scoped_lock lm (_mutex);
return _audio_gain;
return _audio_delay;
}
+ double audio_video_frame_rate () const;
+ void set_audio_video_frame_rate (double r);
+
std::string processing_description () const;
-
+
+protected:
+
+ void add_properties (std::list<UserProperty> &) const;
+
private:
/** Gain to apply to audio in dB */
double _audio_gain;
/** Delay to apply to audio (positive moves audio later) in milliseconds */
int _audio_delay;
+ boost::optional<double> _audio_video_frame_rate;
};
#endif