From 692c1b860c5ccc43420263f12a4d6a46f987b8a6 Mon Sep 17 00:00:00 2001 From: Gary Scavone Date: Sun, 14 Aug 2011 13:45:27 +0000 Subject: [PATCH] Final update for release 4.0.9, including DS bugfix in getDeviceCount (gs). --- RtAudio.cpp | 9 ++++++--- doc/doxygen/tutorial.txt | 2 +- doc/release.txt | 3 ++- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/RtAudio.cpp b/RtAudio.cpp index ab50cbb..4a3966b 100644 --- a/RtAudio.cpp +++ b/RtAudio.cpp @@ -3661,9 +3661,12 @@ unsigned int RtApiDs :: getDeviceCount( void ) } // Clean out any devices that may have disappeared. - std::vector< DsDevice > :: iterator it; - for ( it=dsDevices.begin(); it < dsDevices.end(); it++ ) - if ( it->found == false ) dsDevices.erase( it ); + std::vector< int > indices; + for ( unsigned int i=0; iVersion 4.0.9 +Latest Release (14 August 2011): Version 4.0.9 \section documentation Documentation Links diff --git a/doc/release.txt b/doc/release.txt index c58c9d9..ebbc432 100644 --- a/doc/release.txt +++ b/doc/release.txt @@ -2,12 +2,13 @@ RtAudio - a set of C++ classes that provide a common API for realtime audio inpu By Gary P. Scavone, 2001-2011. -v4.0.9: (11 August 2011) +v4.0.9: (14 August 2011) - fix for ASIO problem enumerating devices after opening duplex stream (Oliver Larkin) - fix for OS-X problems setting sample rate and bits-per-sample - updates for OS-X "Lion" - updates for wide character support in Windows DS (UNICODE) - fix for possible ALSA callback thread hang (thanks to Tristan Matthews) +- fix for DS getDeviceCount bug (vector erase problem) v4.0.8: (12 April 2011) - fix for MinGW4 problem enumerating and setting sample rates (iasiothiscallresolver, Dmitry Kostjuchenko) -- 2.30.2