diff options
| author | Gary Scavone <gary@music.mcgill.ca> | 2011-08-30 18:47:27 +0000 |
|---|---|---|
| committer | Stephen Sinclair <sinclair@music.mcgill.ca> | 2013-10-11 01:38:29 +0200 |
| commit | 325fea749470f53e3d9dcd903d1c9b7c881a37fc (patch) | |
| tree | 66011339647868f6b429819e916f0abcd753fb47 /RtAudio.cpp | |
| parent | 692c1b860c5ccc43420263f12a4d6a46f987b8a6 (diff) | |
Fix for compile bug in Windows DS and library configure in linux (GS).
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();
}
|
