From 28111007e2e6fd62f5810be780706ae1618bd33f Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 21 Jan 2021 02:44:11 +0100 Subject: Adapt for libdcp use of enum class. --- src/lib/audio_mapping.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/lib/audio_mapping.h') 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 + Copyright (C) 2013-2021 Carl Hetherington This file is part of DCP-o-matic. @@ -25,6 +25,7 @@ #ifndef DCPOMATIC_AUDIO_MAPPING_H #define DCPOMATIC_AUDIO_MAPPING_H +#include #include #include @@ -51,8 +52,11 @@ public: void make_zero (); void make_default (AudioProcessor const * processor, boost::optional filename = boost::optional()); + 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; -- cgit v1.2.3