diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-05-20 16:21:55 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-05-20 16:21:55 +0100 |
| commit | 0c66eaeac227d6aeb63a7a36e202ef87081dc222 (patch) | |
| tree | fe59970e8ca5d6bfc7859fa6f901b1f1ed04eb33 /src/lib/sndfile_content.h | |
| parent | 56aa7eef1572e48c96ff198ee52a5a5fe17a6bf0 (diff) | |
Some basics of AudioMapping.
Diffstat (limited to 'src/lib/sndfile_content.h')
| -rw-r--r-- | src/lib/sndfile_content.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/sndfile_content.h b/src/lib/sndfile_content.h index 0623aa6f0..e0d66b992 100644 --- a/src/lib/sndfile_content.h +++ b/src/lib/sndfile_content.h @@ -1,3 +1,5 @@ +/* -*- c-basic-offset: 8; default-tab-width: 8; -*- */ + /* Copyright (C) 2013 Carl Hetherington <cth@carlh.net> @@ -61,10 +63,16 @@ public: int output_audio_frame_rate (boost::shared_ptr<const Film>) const; + AudioMapping audio_mapping () const { + boost::mutex::scoped_lock lm (_mutex); + return _mapping; + } + static bool valid_file (boost::filesystem::path); private: int _audio_channels; ContentAudioFrame _audio_length; int _audio_frame_rate; + AudioMapping _mapping; }; |
