diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-09-25 22:12:18 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-09-25 22:12:18 +0200 |
| commit | 6698e6e33ba41a6d0ad30b02f9fb5ef18d788ad6 (patch) | |
| tree | 4e37f1db23ba716e8620bc8851a0d50959bd11a1 /src/main_sound_configuration.h | |
| parent | 763b6b6b73eda3d014c77417e3cb873d592daed2 (diff) | |
White space: main_sound_configuration.{cc,h}
Diffstat (limited to 'src/main_sound_configuration.h')
| -rw-r--r-- | src/main_sound_configuration.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/main_sound_configuration.h b/src/main_sound_configuration.h index b1fb9b77..2c872ba2 100644 --- a/src/main_sound_configuration.h +++ b/src/main_sound_configuration.h @@ -52,10 +52,10 @@ enum class MCASoundField }; -extern std::string channel_to_mca_id (Channel c, MCASoundField field); -extern Channel mca_id_to_channel (std::string); -extern std::string channel_to_mca_name (Channel c, MCASoundField field); -extern ASDCP::UL channel_to_mca_universal_label (Channel c, MCASoundField field, ASDCP::Dictionary const* dict); +extern std::string channel_to_mca_id(Channel c, MCASoundField field); +extern Channel mca_id_to_channel(std::string); +extern std::string channel_to_mca_name(Channel c, MCASoundField field); +extern ASDCP::UL channel_to_mca_universal_label(Channel c, MCASoundField field, ASDCP::Dictionary const* dict); @@ -69,20 +69,20 @@ public: * return the original invalid string. */ explicit MainSoundConfiguration(std::string); - MainSoundConfiguration (MCASoundField field_, int channels); + MainSoundConfiguration(MCASoundField field_, int channels); - MCASoundField field () const { + MCASoundField field() const { throw_if_invalid(); return _field; } - int channels () const { + int channels() const { throw_if_invalid(); return _channels.size(); } - boost::optional<Channel> mapping (int index) const; - void set_mapping (int index, Channel channel); + boost::optional<Channel> mapping(int index) const; + void set_mapping(int index, Channel channel); std::string as_string() const { return _configuration; |
