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

From: Dmitry Baikov <dsbaikov@email-addr-hidden>
Date: Sat Mar 10 2007 - 18:23:27 EET

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!

Dmitry.
Received on Sat Mar 10 20:15:04 2007

This archive was generated by hypermail 2.1.8 : Sat Mar 10 2007 - 20:15:04 EET