Skip to content

Commit 0dd1ef2

Browse files
committed
feat(Device::Matching): Use the Name to match device when id is different. Please rename your device if you have 2 with the same name.
1 parent be97b1b commit 0dd1ef2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

SoundSwitch.Common/Framework/Audio/Device/DeviceInfo.cs

+2
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ public bool Equals(DeviceInfo other)
9090
if (Type != other.Type) return false;
9191
//Same Id, it's the same device
9292
if (Id == other.Id) return true;
93+
//Always match on NameClean when Id is different
94+
//help recognizing the same device
9395
return NameClean == other.NameClean;
9496
}
9597

0 commit comments

Comments
 (0)