[AFV, Ref T739 register device also based on process

This commit is contained in:
Klaus Basan
2019-10-31 00:48:19 +01:00
committed by Mat Sutcliffe
parent 2b1d771275
commit 32c6ef3fd6
4 changed files with 17 additions and 6 deletions

View File

@@ -45,6 +45,14 @@ namespace BlackMisc
stringCompare(device.getMachineName(), this->getMachineName(), Qt::CaseInsensitive);
}
bool CAudioDeviceInfo::matchesNameTypeMachineProcess(const CAudioDeviceInfo &device) const
{
return device.getType() == this->getType() &&
device.getIdentifier().getProcessId() == this->getIdentifier().getProcessId() &&
stringCompare(device.getName(), this->getName(), Qt::CaseInsensitive) &&
stringCompare(device.getMachineName(), this->getMachineName(), Qt::CaseInsensitive);
}
CAudioDeviceInfo::DeviceType CAudioDeviceInfo::fromQtMode(QAudio::Mode m)
{
switch (m)