fromValue static method

ma_channel_conversion_path fromValue(
  1. int value
)

Implementation

static ma_channel_conversion_path fromValue(int value) => switch (value) {
  0 => ma_channel_conversion_path_unknown,
  1 => ma_channel_conversion_path_passthrough,
  2 => ma_channel_conversion_path_mono_out,
  3 => ma_channel_conversion_path_mono_in,
  4 => ma_channel_conversion_path_shuffle,
  5 => ma_channel_conversion_path_weights,
  _ => throw ArgumentError(
    'Unknown value for ma_channel_conversion_path: $value',
  ),
};