diff options
Diffstat (limited to 'RtAudio.cpp')
| -rw-r--r-- | RtAudio.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/RtAudio.cpp b/RtAudio.cpp index 4a3966b..8a520c3 100644 --- a/RtAudio.cpp +++ b/RtAudio.cpp @@ -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();
}
|
