fromValue static method

ma_resample_algorithm fromValue(
  1. int value
)

Implementation

static ma_resample_algorithm fromValue(int value) => switch (value) {
      0 => ma_resample_algorithm_linear,
      1 => ma_resample_algorithm_custom,
      _ => throw ArgumentError(
          'Unknown value for ma_resample_algorithm: $value'),
    };