diff options
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();
}
|
