[Stk] rtaudio - priority and keyboard events

TJF tjfoerster at web.de
Thu Aug 16 09:53:26 PDT 2012


Hi Gary,

thank you very much! The value should be between 1 and 99 :

http://oreilly.com/catalog/linuxkernel/chapter/ch10.html

Regards
Thomas


> 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 <tjfoerster at web.de> wrote:
>
>> 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)&&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
>> Stk at ccrma.stanford.edu
>> http://ccrma-mail.stanford.edu/mailman/listinfo/stk
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://ccrma-mail.stanford.edu/pipermail/stk/attachments/20120816/6e62e6c5/attachment.html 


More information about the Stk mailing list