[linux-audio-dev] Realtime problems with midi/osc sequencer

Dmitry Baikov dsbaikov at gmail.com
Sat Mar 10 16:23:27 UTC 2007

In addition to select() there's also clock_nanosleep(CLOCK_MONOTONIC,
0, &tv, NULL), which in theory should give best resolution possible.

To set realtime privileges, use (taken from jack):

struct sched_param rtparam;
memset (&rtparam, 0, sizeof (rtparam));
rtparam.sched_priority = priority;
pthread_setschedparam (thread, SCHED_FIFO, &rtparam);

Interesting project, btw. I planned to start something like this myself.

Please, publish results of your timing experiments - very interesting!


More information about the Linux-audio-dev mailing list