From be9a2a10b402cf16d56829db9bee1e87f3277b6d Mon Sep 17 00:00:00 2001 From: Gary Scavone Date: Mon, 13 Aug 2007 19:10:10 +0000 Subject: [PATCH 1/2] Fixed RtError::WARNING mistake in RtAudio. Also, changed pthread setsched priority code a bit for ALSA ... not fully tested. --- RtAudio.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/RtAudio.cpp b/RtAudio.cpp index bc3a42b..376319c 100644 --- a/RtAudio.cpp +++ b/RtAudio.cpp @@ -5906,7 +5906,9 @@ extern "C" void *alsaCallbackHandler( void *ptr ) #ifdef SCHED_RR // Set a higher scheduler priority (P.J. Leonard) struct sched_param param; - param.sched_priority = 39; // Is this the best number? + int min = sched_get_priority_min( SCHED_RR ); + int max = sched_get_priority_max( SCHED_RR ); + param.sched_priority = min + ( max - min ) / 2; // Is this the best number? sched_setscheduler( 0, SCHED_RR, ¶m ); #endif @@ -6832,7 +6834,7 @@ extern "C" void *ossCallbackHandler( void *ptr ) // message printing. void RtApi :: error( RtError::Type type ) { - if ( type == RtError::RtError::WARNING && showWarnings_ == true ) + if ( type == RtError::WARNING && showWarnings_ == true ) std::cerr << '\n' << errorText_ << "\n\n"; else throw( RtError( errorText_, type ) ); From 8f2275b4cf067760f574e00c41697107930e1912 Mon Sep 17 00:00:00 2001 From: Gary Scavone Date: Mon, 13 Aug 2007 19:19:56 +0000 Subject: [PATCH 2/2] Documentation updates for v. 4.0.1 release. --- doc/doxygen/tutorial.txt | 2 +- doc/release.txt | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/doxygen/tutorial.txt b/doc/doxygen/tutorial.txt index 8e6b63d..ffbc435 100644 --- a/doc/doxygen/tutorial.txt +++ b/doc/doxygen/tutorial.txt @@ -32,7 +32,7 @@ Devices are now re-enumerated every time the RtAudio::getDeviceCount(), RtAudio: \section download Download -Latest Release (7 August 2007): Version 4.0.0 +Latest Release (13 August 2007): Version 4.0.1 \section documentation Documentation Links diff --git a/doc/release.txt b/doc/release.txt index 522d012..d5f3415 100644 --- a/doc/release.txt +++ b/doc/release.txt @@ -2,6 +2,9 @@ RtAudio - a set of C++ classes that provide a common API for realtime audio inpu By Gary P. Scavone, 2001-2007. +v4.0.1: (13 August 2007) +- fix to RtError::WARNING typo in RtAudio.cpp + v4.0.0: (7 August 2007) - new support for non-interleaved user data - additional input/output parameter specifications, including channel offset