fromValue static method
Implementation
static ma_thread_priority fromValue(int value) => switch (value) {
-5 => ma_thread_priority_idle,
-4 => ma_thread_priority_lowest,
-3 => ma_thread_priority_low,
-2 => ma_thread_priority_normal,
-1 => ma_thread_priority_high,
0 => ma_thread_priority_highest,
1 => ma_thread_priority_realtime,
_ =>
throw ArgumentError('Unknown value for ma_thread_priority: $value'),
};