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/audio_mapping.h | |
| parent | 56aa7eef1572e48c96ff198ee52a5a5fe17a6bf0 (diff) | |
Some basics of AudioMapping.
Diffstat (limited to 'src/lib/audio_mapping.h')
| -rw-r--r-- | src/lib/audio_mapping.h | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/src/lib/audio_mapping.h b/src/lib/audio_mapping.h index 3c471d3f4..7d76e4f5a 100644 --- a/src/lib/audio_mapping.h +++ b/src/lib/audio_mapping.h @@ -1,3 +1,5 @@ +/* -*- c-basic-offset: 8; default-tab-width: 8; -*- */ + /* Copyright (C) 2013 Carl Hetherington <cth@carlh.net> @@ -21,20 +23,28 @@ #define DCPOMATIC_AUDIO_MAPPING_H #include <list> -#include <string> #include <libdcp/types.h> #include <boost/shared_ptr.hpp> -#include "audio_content.h" + +namespace xmlpp { + class Node; +} + +namespace cxml { + class Node; +} class AudioMapping { public: + AudioMapping (); + AudioMapping (int); + AudioMapping (boost::shared_ptr<const cxml::Node>); + void as_xml (xmlpp::Node *) const; - void set_from_xml (boost::shared_ptr<const cxml::Node>); void add (int, libdcp::Channel); - int dcp_channels () const; std::list<int> dcp_to_content (libdcp::Channel) const; std::list<std::pair<int, libdcp::Channel> > content_to_dcp () const { return _content_to_dcp; |
