summaryrefslogtreecommitdiff
path: root/RtAudio.cpp
diff options
context:
space:
mode:
authorgaryscavone <garyscavone@users.noreply.github.com>2016-02-03 16:53:01 -0500
committergaryscavone <garyscavone@users.noreply.github.com>2016-02-03 16:53:01 -0500
commit2e50a308a86c2dc3510fe45300004d5efccfafd9 (patch)
treed62fc6f5b69d2c37ac8b2f92bc6db501bde27c8e /RtAudio.cpp
parentf6829a48de2bb0a2a0a7c000fd96d2b2e3874eb2 (diff)
parent33ce5cdac68e575320f6f867c731536267d79b35 (diff)
Merge pull request #42 from berkus/master
Multiple minor compile fixes with modern C++
Diffstat (limited to 'RtAudio.cpp')
-rwxr-xr-xRtAudio.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/RtAudio.cpp b/RtAudio.cpp
index cc81fc9..3875761 100755
--- a/RtAudio.cpp
+++ b/RtAudio.cpp
@@ -8070,7 +8070,7 @@ static void *alsaCallbackHandler( void *ptr )
bool *isRunning = &info->isRunning;
#ifdef SCHED_RR // Undefined with some OSes (eg: NetBSD 1.6.x with GNU Pthread)
- if ( &info->doRealtime ) {
+ if ( info->doRealtime ) {
pthread_t tID = pthread_self(); // ID of this thread
sched_param prio = { info->priority }; // scheduling priority of thread
pthread_setschedparam( tID, SCHED_RR, &prio );
@@ -10142,8 +10142,8 @@ void RtApi :: convertBuffer( char *outBuffer, char *inBuffer, ConvertInfo &info
void RtApi :: byteSwapBuffer( char *buffer, unsigned int samples, RtAudioFormat format )
{
- register char val;
- register char *ptr;
+ char val;
+ char *ptr;
ptr = buffer;
if ( format == RTAUDIO_SINT16 ) {