/*
- Copyright (C) 2013-2014 Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2013-2015 Carl Hetherington <cth@carlh.net>
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
#ifndef DCPOMATIC_AUDIO_MAPPING_H
#define DCPOMATIC_AUDIO_MAPPING_H
-#include <vector>
-#include <boost/shared_ptr.hpp>
-#include <dcp/types.h>
#include <libcxml/cxml.h>
+#include <dcp/types.h>
+#include <boost/shared_ptr.hpp>
+#include <vector>
namespace xmlpp {
class Node;
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<dcp::Channel> mapped_dcp_channels () const;
+ void unmap_all ();
private:
void setup (int);
+ void make_zero ();
int _content_channels;
std::vector<std::vector<float> > _gain;
+ std::vector<std::string> _name;
};
#endif