From 47eca1672334a9cf0f4b37de2f28a59b66403118 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 12 Feb 2026 17:25:11 +0100 Subject: Add MainSoundConfiguration::set_channels(). --- src/main_sound_configuration.cc | 7 +++++++ src/main_sound_configuration.h | 2 ++ 2 files changed, 9 insertions(+) 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 mapping(int index) const; void set_mapping(int index, Channel channel); -- cgit v1.2.3