src/media/audio/audio_core/audio_link.cc
std::optional<VolumeCurve> SelectVolumeCurve(std::optional<VolumeCurve> curve_a,
                                             std::optional<VolumeCurve> curve_b) {
  FX_DCHECK(!(curve_a.has_value() && curve_b.has_value()))
      << "Two objects with a gain curve cannot be linked.";

  if (curve_a.has_value()) {
    return curve_a;
  }

  return curve_b;
}
// Returns one of two curves, if either of them exist. Otherwise returns std::nullopt;
Returns one of two curves, if either of them exist. Otherwise returns std::nullopt.
Returns one of two curves if either of them exist . Otherwise returns std :: nullopt .
std::optional<VolumeCurve> SelectVolumeCurve(std::optional<VolumeCurve> curve_a,
                                             std::optional<VolumeCurve> curve_b) {
  FX_DCHECK(!(curve_a.has_value() && curve_b.has_value()))
      << "Two objects with a gain curve cannot be linked.";
  if (curve_a.has_value()) {
    return curve_a;
  }
  return curve_b;
}
std :: optional < VolumeCurve > SelectVolumeCurve ( std :: optional < VolumeCurve > curve_a , std :: optional < VolumeCurve > curve_b ) { FX_DCHECK ( ! ( curve_a . has_value ( ) && curve_b . has_value ( ) ) ) << " " ; if ( curve_a . has_value ( ) ) { return curve_a ; } return curve_b ; }
Returns one of two curves, if either of them exist.
Returns one of two curves if either of them exist .