initialization time. it is designed to operate on the active device list,
so it was a bug to call it from ScanDeviceInfos anyhow.
/* Ignore the result of CommitDeviceInfos(), it is a non-failing operation */
CommitDeviceInfos( &winMmeHostApi->inheritedHostApiRep, hostApiIndex, scanResults, deviceCount );
+ InitializeDefaultDeviceIdsFromEnv( winMmeHostApi ); /* uses the active device list. must be called after CommitDeviceInfos */
+
(*hostApi)->Terminate = Terminate;
(*hostApi)->OpenStream = OpenStream;
(*hostApi)->IsFormatSupported = IsFormatSupported;
}
}
- InitializeDefaultDeviceIdsFromEnv( winMmeHostApi );
-
*scanResults = outArgument;
return result;