<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <font face="Arial">Hi Gary,<br>
      <br>
      thank you very much! The value should be between 1 and 99 :<br>
      <br>
      <a class="moz-txt-link-freetext" href="http://oreilly.com/catalog/linuxkernel/chapter/ch10.html">http://oreilly.com/catalog/linuxkernel/chapter/ch10.html</a><br>
      <br>
      Regards<br>
      Thomas<br>
      <br>
    </font>
    <div class="moz-cite-prefix"><br>
    </div>
    <blockquote
      cite="mid:A0D80F52-D88F-4AFD-B27A-3416EADE33E4@ccrma.stanford.edu"
      type="cite">
      <pre wrap="">Hi Tomas,

The "priority" option is only used if you also set the RTAUDIO_SCHEDULE_REALTIME flag.  The priority value (a number) corresponds to the linux realtime scheduling system … I can't remember the valid range of values, though whatever you provide is checked against:

      int min = sched_get_priority_min( SCHED_RR );
      int max = sched_get_priority_max( SCHED_RR );

Regards,

--gary

On 2012-08-13, at 9:41 AM, TJF <a class="moz-txt-link-rfc2396E" href="mailto:tjfoerster@web.de">&lt;tjfoerster@web.de&gt;</a> wrote:

</pre>
      <blockquote type="cite">
        <pre wrap="">Hi everybody,

I am changing some things to bring my Windows application to Linux. I want to use the StreamOption "priority".

Am I right to to use it this way (the second line)? May be also a second process -  the process name of my application?

RtAudio::StreamOptions options;
options.priority =  ALSA;

My other question: In Windows I used system keyboard events like this to control the command-line app from outside:

(Ctrl+o)
if(GetAsyncKeyState(VK_CONTROL)&amp;&amp;GetAsyncKeyState(0x4F))
            {
               ...
            }

For Linux I couln't find something similar. What would be a "light-weight" solution: Using SDL (only keyboard-events)?

Thanks a lot!
Regards
Thomas
_______________________________________________
Stk mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Stk@ccrma.stanford.edu">Stk@ccrma.stanford.edu</a>
<a class="moz-txt-link-freetext" href="http://ccrma-mail.stanford.edu/mailman/listinfo/stk">http://ccrma-mail.stanford.edu/mailman/listinfo/stk</a>
</pre>
      </blockquote>
      <pre wrap="">

</pre>
    </blockquote>
    <br>
  </body>
</html>