diff options
| author | Stephen Sinclair <sinclair@music.mcgill.ca> | 2013-10-11 02:04:03 +0200 |
|---|---|---|
| committer | Stephen Sinclair <sinclair@music.mcgill.ca> | 2013-10-11 02:04:03 +0200 |
| commit | 7f884ed411494fdb3191d4ad65fe7d663b58dbb9 (patch) | |
| tree | ec443cf2c71249bd6396d78f047037e3f0dbd733 /RtAudio.cpp | |
| parent | f505bc0a8fd3d6e1384f1ba3862153a5dc2ecbd2 (diff) | |
| parent | dc20370a546ae7e48846c275d095f23a93e989fd (diff) | |
Merge 4.0.10 into releases
Diffstat (limited to 'RtAudio.cpp')
| -rw-r--r-- | RtAudio.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/RtAudio.cpp b/RtAudio.cpp index 4a3966b..d4f3819 100644 --- a/RtAudio.cpp +++ b/RtAudio.cpp @@ -38,7 +38,7 @@ */
/************************************************************************/
-// RtAudio: Version 4.0.9
+// RtAudio: Version 4.0.10
#include "RtAudio.h"
#include <iostream>
@@ -3664,9 +3664,9 @@ unsigned int RtApiDs :: getDeviceCount( void ) std::vector< int > indices;
for ( unsigned int i=0; i<dsDevices.size(); i++ )
if ( dsDevices[i].found == false ) indices.push_back( i );
- for ( unsigned int nErased=0, unsigned int i=0; i<indices.size(); i++, nErased++ ) {
- dsDevices.erase( dsDevices.begin()-nErased );
- }
+ unsigned int nErased = 0;
+ for ( unsigned int i=0; i<indices.size(); i++ )
+ dsDevices.erase( dsDevices.begin()-nErased++ );
return dsDevices.size();
}
|
