fromValue static method

ma_performance_profile fromValue(
  1. int value
)

Implementation

static ma_performance_profile fromValue(int value) => switch (value) {
      0 => ma_performance_profile_low_latency,
      1 => ma_performance_profile_conservative,
      _ => throw ArgumentError(
          'Unknown value for ma_performance_profile: $value'),
    };