Linux: Support For Rtikit

[left]From https://launchpad.net/ubuntu/oneiric/i386/rtkit[/left]

[font=Ubuntu,]

For me, it sounds reasonable, if Renoise Linux version would support this kind of mechanism to get its realtime priorities for its threads. What do you think?

Another issue with realtime priorities in the Linux version is:

if a user has e.g.: “ulimit -r 95”, Renoise complains about not being able to setup its rt threads. But imho, rt priority 95 should be enough anyways (rtprio 95 is the default value on Ubuntu 11.10, which is set from /etc/security/limits.d/audio.conf by the jackd package).

Imho, Renoise should try to get the maximum available realtime priority, eg. as returned by the librt function calls “sched_get_priority_max(SCHED_FIFO);” or “sched_get_priority_max(SCHED_RR);”.

Or one should be able to configure the renoise rt prio in the config.xml

Another good Linux audio software example (with rt prioritiies) is the Pianoteq Play VSTi. When starting from the console, it outputs:

$ Pianoteq\ PLAY_x64
Multi-core: got real-time scheduling with priority 65
Multi-core: got real-time scheduling with priority 65