X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Faudio_mapping.h;h=e37beaeb26eb77dce33fd0a75a7ab8dee51d1086;hb=0a93237cb5e4642d3b698ff9b7d0cfae5401478c;hp=a76d83a370f703dceded47e1d5aff6e90cd472e3;hpb=2d24bc7aaed800415bce4fffe06f261d5e9e464a;p=dcpomatic.git diff --git a/src/lib/audio_mapping.h b/src/lib/audio_mapping.h index a76d83a37..e37beaeb2 100644 --- a/src/lib/audio_mapping.h +++ b/src/lib/audio_mapping.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2013-2014 Carl Hetherington + Copyright (C) 2013-2015 Carl Hetherington This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -24,10 +24,10 @@ #ifndef DCPOMATIC_AUDIO_MAPPING_H #define DCPOMATIC_AUDIO_MAPPING_H -#include -#include -#include #include +#include +#include +#include namespace xmlpp { class Node; @@ -64,13 +64,23 @@ public: return _content_channels; } + void set_name (int channel, std::string name); + std::string name (int channel) const { + return _name[channel]; + } + std::string digest () const; + + std::list mapped_dcp_channels () const; + void unmap_all (); private: void setup (int); + void make_zero (); int _content_channels; std::vector > _gain; + std::vector _name; }; #endif