fromValue static method

ma_device_state fromValue(
  1. int value
)

Implementation

static ma_device_state fromValue(int value) => switch (value) {
      0 => ma_device_state_uninitialized,
      1 => ma_device_state_stopped,
      2 => ma_device_state_started,
      3 => ma_device_state_starting,
      4 => ma_device_state_stopping,
      _ => throw ArgumentError('Unknown value for ma_device_state: $value'),
    };