summaryrefslogtreecommitdiff
path: root/src/lib/audio_content.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-04-14 02:06:18 +0100
committerCarl Hetherington <cth@carlh.net>2016-05-18 11:50:29 +0100
commit2d5beb0d6794df13ad1df47e84fd7a57d1d1c64d (patch)
tree70034dc6789e55394dac0ec87b968c58b96e4b48 /src/lib/audio_content.h
parent826ed68a1e34ce158342da324ff7203af0449641 (diff)
Rename video/audio/subtitle part methods.
Diffstat (limited to 'src/lib/audio_content.h')
-rw-r--r--src/lib/audio_content.h32
1 files changed, 19 insertions, 13 deletions
diff --git a/src/lib/audio_content.h b/src/lib/audio_content.h
index 3aa9678b0..09e7a0d12 100644
--- a/src/lib/audio_content.h
+++ b/src/lib/audio_content.h
@@ -34,10 +34,16 @@
class AudioContentProperty
{
public:
+<<<<<<< 17dbd967c18aff2f3007eb86b5eee5b43f23bc4b
static int const AUDIO_STREAMS;
static int const AUDIO_GAIN;
static int const AUDIO_DELAY;
static int const AUDIO_VIDEO_FRAME_RATE;
+=======
+ static int const STREAMS;
+ static int const GAIN;
+ static int const DELAY;
+>>>>>>> Rename video/audio/subtitle part methods.
};
class AudioContent : public ContentPart
@@ -50,23 +56,23 @@ public:
void as_xml (xmlpp::Node *) const;
std::string technical_summary () const;
- AudioMapping audio_mapping () const;
- void set_audio_mapping (AudioMapping);
- int resampled_audio_frame_rate () const;
+ AudioMapping mapping () const;
+ void set_mapping (AudioMapping);
+ int resampled_frame_rate () const;
bool has_rate_above_48k () const;
- std::vector<std::string> audio_channel_names () const;
+ std::vector<std::string> channel_names () const;
- void set_audio_gain (double);
- void set_audio_delay (int);
+ void set_gain (double);
+ void set_delay (int);
- double audio_gain () const {
+ double gain () const {
boost::mutex::scoped_lock lm (_mutex);
- return _audio_gain;
+ return _gain;
}
- int audio_delay () const {
+ int delay () const {
boost::mutex::scoped_lock lm (_mutex);
- return _audio_delay;
+ return _delay;
}
double audio_video_frame_rate () const;
@@ -89,10 +95,10 @@ public:
private:
/** Gain to apply to audio in dB */
- double _audio_gain;
+ double _gain;
/** Delay to apply to audio (positive moves audio later) in milliseconds */
- int _audio_delay;
- boost::optional<double> _audio_video_frame_rate;
+ int _delay;
+ boost::optional<double> _video_frame_rate;
std::vector<AudioStreamPtr> _streams;
};