X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Faudio_mapping.h;h=9a507b550e958a8d0928adf2f1a9733eb79db708;hb=f0e95aa5b7ada81a1c40f06facab2e94e45ab26c;hp=7d76e4f5a0643066285086522cd66d12d81ceaea;hpb=996b0c06e23bcb6b300d7b8799df94993692e07d;p=dcpomatic.git diff --git a/src/lib/audio_mapping.h b/src/lib/audio_mapping.h index 7d76e4f5a..9a507b550 100644 --- a/src/lib/audio_mapping.h +++ b/src/lib/audio_mapping.h @@ -1,5 +1,3 @@ -/* -*- c-basic-offset: 8; default-tab-width: 8; -*- */ - /* Copyright (C) 2013 Carl Hetherington @@ -34,26 +32,38 @@ 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: AudioMapping (); AudioMapping (int); AudioMapping (boost::shared_ptr); + + /* Default copy constructor is fine */ void as_xml (xmlpp::Node *) const; void add (int, libdcp::Channel); + void make_default (); std::list dcp_to_content (libdcp::Channel) const; std::list > content_to_dcp () const { return _content_to_dcp; } - std::list content_channels () const; + int content_channels () const { + return _content_channels; + } + std::list content_to_dcp (int) const; private: + int _content_channels; std::list > _content_to_dcp; };