mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-22 00:06:59 +02:00
Fix compilation error on Android.
Public issue https://github.com/mackron/miniaudio/issues/805
This commit is contained in:
@@ -16169,8 +16169,12 @@ static ma_result ma_thread_create__posix(ma_thread* pThread, ma_thread_priority
|
||||
|
||||
/* I'm not treating a failure of setting the priority as a critical error so not aborting on failure here. */
|
||||
if (pthread_attr_setschedparam(&attr, &sched) == 0) {
|
||||
#if !defined(MA_ANDROID) || (defined(__ANDROID_API__) && __ANDROID_API__ >= 28)
|
||||
{
|
||||
pthread_attr_setinheritsched(&attr, PTHREAD_EXPLICIT_SCHED);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user