mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 00:16:51 +08:00
[AFV, Ref T739 register device also based on process
This commit is contained in:
committed by
Mat Sutcliffe
parent
2b1d771275
commit
32c6ef3fd6
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user