mirror of
https://github.com/thestk/stk
synced 2026-05-13 08:31:56 +00:00
Change "eg:" to "e.g."
This commit is contained in:
@@ -7729,7 +7729,7 @@ bool RtApiAlsa :: probeDeviceOpen( unsigned int device, StreamMode mode, unsigne
|
|||||||
pthread_attr_init( &attr );
|
pthread_attr_init( &attr );
|
||||||
pthread_attr_setdetachstate( &attr, PTHREAD_CREATE_JOINABLE );
|
pthread_attr_setdetachstate( &attr, PTHREAD_CREATE_JOINABLE );
|
||||||
|
|
||||||
#ifdef SCHED_RR // Undefined with some OSes (eg: NetBSD 1.6.x with GNU Pthread)
|
#ifdef SCHED_RR // Undefined with some OSes (e.g. NetBSD 1.6.x with GNU Pthread)
|
||||||
if ( options && options->flags & RTAUDIO_SCHEDULE_REALTIME ) {
|
if ( options && options->flags & RTAUDIO_SCHEDULE_REALTIME ) {
|
||||||
// We previously attempted to increase the audio callback priority
|
// We previously attempted to increase the audio callback priority
|
||||||
// to SCHED_RR here via the attributes. However, while no errors
|
// to SCHED_RR here via the attributes. However, while no errors
|
||||||
@@ -8166,7 +8166,7 @@ static void *alsaCallbackHandler( void *ptr )
|
|||||||
RtApiAlsa *object = (RtApiAlsa *) info->object;
|
RtApiAlsa *object = (RtApiAlsa *) info->object;
|
||||||
bool *isRunning = &info->isRunning;
|
bool *isRunning = &info->isRunning;
|
||||||
|
|
||||||
#ifdef SCHED_RR // Undefined with some OSes (eg: NetBSD 1.6.x with GNU Pthread)
|
#ifdef SCHED_RR // Undefined with some OSes (e.g. NetBSD 1.6.x with GNU Pthread)
|
||||||
if ( info->doRealtime ) {
|
if ( info->doRealtime ) {
|
||||||
pthread_t tID = pthread_self(); // ID of this thread
|
pthread_t tID = pthread_self(); // ID of this thread
|
||||||
sched_param prio = { info->priority }; // scheduling priority of thread
|
sched_param prio = { info->priority }; // scheduling priority of thread
|
||||||
@@ -9228,7 +9228,7 @@ bool RtApiOss :: probeDeviceOpen( unsigned int device, StreamMode mode, unsigned
|
|||||||
pthread_attr_t attr;
|
pthread_attr_t attr;
|
||||||
pthread_attr_init( &attr );
|
pthread_attr_init( &attr );
|
||||||
pthread_attr_setdetachstate( &attr, PTHREAD_CREATE_JOINABLE );
|
pthread_attr_setdetachstate( &attr, PTHREAD_CREATE_JOINABLE );
|
||||||
#ifdef SCHED_RR // Undefined with some OSes (eg: NetBSD 1.6.x with GNU Pthread)
|
#ifdef SCHED_RR // Undefined with some OSes (e.g. NetBSD 1.6.x with GNU Pthread)
|
||||||
if ( options && options->flags & RTAUDIO_SCHEDULE_REALTIME ) {
|
if ( options && options->flags & RTAUDIO_SCHEDULE_REALTIME ) {
|
||||||
struct sched_param param;
|
struct sched_param param;
|
||||||
int priority = options->priority;
|
int priority = options->priority;
|
||||||
|
|||||||
Reference in New Issue
Block a user