bug fixes

This commit is contained in:
2023-02-24 14:20:37 +01:00
parent 86ddf850af
commit df3de70398
6 changed files with 29 additions and 15 deletions

View File

@@ -92,7 +92,10 @@ void loadAudioDevices(AudioData& audioData, std::vector<AudioDevice>& deviceList
audioDevice.isDefaultCommunication = wcscmp(defaultCommunicationId, deviceId) == 0;
}
deviceList.push_back(std::move(audioDevice));
if (audioDevice.isInitialized)
{
deviceList.push_back(std::move(audioDevice));
}
}
CoTaskMemFree(deviceId);