fromValue static method

Implementation

static ma_aaudio_allowed_capture_policy fromValue(int value) =>
    switch (value) {
      0 => ma_aaudio_allow_capture_default,
      1 => ma_aaudio_allow_capture_by_all,
      2 => ma_aaudio_allow_capture_by_system,
      3 => ma_aaudio_allow_capture_by_none,
      _ => throw ArgumentError(
          "Unknown value for ma_aaudio_allowed_capture_policy: $value"),
    };