rodecaster_protocol/names/mix_minuses.rs
1//! [`MixMinusesParam`]: per-`MIXMINUSES`/`RCSYNCMIXMINUES`-node parameter
2//! family.
3//!
4//! Both `MIXMINUSES` and `RCSYNCMIXMINUES` nodes carry the SAME single
5//! property (`outputMixMinus`). Consumers who need to distinguish between the
6//! two node types must inspect the path: this family types the property name
7//! only. The firmware misspells `RCSYNCMIXMINUES` (should be `MINUSES`);
8//! preserved verbatim in the node-name check.
9
10wire_param_enum! {
11 /// A mix-minus parameter: the one flat property on both `MIXMINUSES` and
12 /// `RCSYNCMIXMINUES` nodes. Mix-minus routing produces a per-output
13 /// send with the local channel subtracted (so a caller doesn't hear their
14 /// own voice returning via CallMe / SIP / rcSync mixes).
15 MixMinusesParam {
16 OutputMixMinus => "outputMixMinus",
17 }
18}
19
20#[cfg(test)]
21mod tests {
22 use super::*;
23
24 #[test]
25 fn mix_minuses_param_round_trips() {
26 assert_eq!(
27 MixMinusesParam::from_name("outputMixMinus"),
28 MixMinusesParam::OutputMixMinus
29 );
30 assert!(MixMinusesParam::OutputMixMinus.is_known());
31 }
32}