Is running on top of soundcard with realtime priority 99 problematic?
/* and now async */
{
static const struct timespec req = {
0,
(250000000 * (1 / 45)),
};
if(!AGS_IS_DEVOUT_THREAD(thread)){
nanosleep(&req, NULL);
}
}