[Stk] rtaudio - priority and keyboard events
Gary Scavone
gary at ccrma.Stanford.EDU
Wed Aug 15 21:57:51 PDT 2012
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
More information about the Stk
mailing list