diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-07-16 23:09:34 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-07-16 23:09:34 +0100 |
| commit | 5778f4c92793a7950f02206e735a00731c87b090 (patch) | |
| tree | 4d532804245e4da0b24cc0245d940edc260aa4db /src/lib/audio_mapping.h | |
| parent | bfc0b96db6cc6c2e94d93f9c4239adca14a6bb0c (diff) | |
Fix up AudioMapping confusions with respect to number of content channels.
Diffstat (limited to 'src/lib/audio_mapping.h')
| -rw-r--r-- | src/lib/audio_mapping.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/lib/audio_mapping.h b/src/lib/audio_mapping.h index ed2c3f28d..9a507b550 100644 --- a/src/lib/audio_mapping.h +++ b/src/lib/audio_mapping.h @@ -32,6 +32,11 @@ namespace cxml { class Node; } +/** A many-to-many mapping from some content channels to DCP channels. + * The number of content channels is set on construction and fixed, + * and then each of those content channels can be mapped to zero or + * more DCP channels. + */ class AudioMapping { public: @@ -44,16 +49,21 @@ public: void as_xml (xmlpp::Node *) const; void add (int, libdcp::Channel); + void make_default (); std::list<int> dcp_to_content (libdcp::Channel) const; std::list<std::pair<int, libdcp::Channel> > content_to_dcp () const { return _content_to_dcp; } - std::list<int> content_channels () const; + int content_channels () const { + return _content_channels; + } + std::list<libdcp::Channel> content_to_dcp (int) const; private: + int _content_channels; std::list<std::pair<int, libdcp::Channel> > _content_to_dcp; }; |
