diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-01-21 02:44:11 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-01-21 20:15:14 +0100 |
| commit | 28111007e2e6fd62f5810be780706ae1618bd33f (patch) | |
| tree | d99fe830ba961b174d3f024d2b5671a9821ed8a9 /src/lib/audio_mapping.h | |
| parent | c7d77490382d6ddb625340c05b57487cde244f96 (diff) | |
Adapt for libdcp use of enum class.
Diffstat (limited to 'src/lib/audio_mapping.h')
| -rw-r--r-- | src/lib/audio_mapping.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/audio_mapping.h b/src/lib/audio_mapping.h index 8add0ec83..6bac0a7d8 100644 --- a/src/lib/audio_mapping.h +++ b/src/lib/audio_mapping.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2013-2015 Carl Hetherington <cth@carlh.net> + Copyright (C) 2013-2021 Carl Hetherington <cth@carlh.net> This file is part of DCP-o-matic. @@ -25,6 +25,7 @@ #ifndef DCPOMATIC_AUDIO_MAPPING_H #define DCPOMATIC_AUDIO_MAPPING_H +#include <dcp/types.h> #include <libcxml/cxml.h> #include <vector> @@ -51,8 +52,11 @@ public: void make_zero (); void make_default (AudioProcessor const * processor, boost::optional<boost::filesystem::path> filename = boost::optional<boost::filesystem::path>()); + void set (dcp::Channel input_channel, int output_channel, float); void set (int input_channel, int output_channel, float); + void set (int input_channel, dcp::Channel output_channel, float); float get (int input_channel, int output_channel) const; + float get (int input_channel, dcp::Channel output_channel) const; int input_channels () const { return _input_channels; |
