diff options
| author | Carl Hetherington <cth@carlh.net> | 2026-02-12 17:25:11 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2026-02-12 17:25:21 +0100 |
| commit | 47eca1672334a9cf0f4b37de2f28a59b66403118 (patch) | |
| tree | 4d4cc115a999424d863f3015c29e4ef1d8d3b19a | |
| parent | 983cb99da828856d867eb0dd984eadb5c5a7f48f (diff) | |
Add MainSoundConfiguration::set_channels().v1.10.49
| -rw-r--r-- | src/main_sound_configuration.cc | 7 | ||||
| -rw-r--r-- | src/main_sound_configuration.h | 2 |
2 files changed, 9 insertions, 0 deletions
diff --git a/src/main_sound_configuration.cc b/src/main_sound_configuration.cc index f9bb07c1..0d933114 100644 --- a/src/main_sound_configuration.cc +++ b/src/main_sound_configuration.cc @@ -318,3 +318,10 @@ dcp::channel_to_mca_universal_label(Channel c, MCASoundField field, ASDCP::Dicti } +void +MainSoundConfiguration::set_channels(int number) +{ + _channels.resize(number); + update_string(); +} + diff --git a/src/main_sound_configuration.h b/src/main_sound_configuration.h index 8c4ac596..6d71df45 100644 --- a/src/main_sound_configuration.h +++ b/src/main_sound_configuration.h @@ -86,6 +86,8 @@ public: return _channels.size(); } + void set_channels(int number); + boost::optional<Channel> mapping(int index) const; void set_mapping(int index, Channel channel); |
