diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-09-25 22:20:52 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-09-25 22:20:52 +0200 |
| commit | 63a81274aa1423ebb593cad9dfe0501853e1c1c5 (patch) | |
| tree | 875ede6e77315ffa98b889cb8119695cf3632d06 /src/main_sound_configuration.h | |
| parent | 6698e6e33ba41a6d0ad30b02f9fb5ef18d788ad6 (diff) | |
Cleanup: remove use of an exception in favour of an optional.
Diffstat (limited to 'src/main_sound_configuration.h')
| -rw-r--r-- | src/main_sound_configuration.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main_sound_configuration.h b/src/main_sound_configuration.h index 2c872ba2..8c4ac596 100644 --- a/src/main_sound_configuration.h +++ b/src/main_sound_configuration.h @@ -53,7 +53,12 @@ enum class MCASoundField extern std::string channel_to_mca_id(Channel c, MCASoundField field); -extern Channel mca_id_to_channel(std::string); + +/** @param id MCA channel ID + * @return Corresponding dcp::Channel, or empty if the id is not recognised. + */ +extern boost::optional<Channel> mca_id_to_channel(std::string id); + 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); |
