Use audio display name if available

This commit is contained in:
2023-10-04 00:17:41 -06:00
parent 4ca0ad021f
commit 6aaa32cf92
2 changed files with 16 additions and 5 deletions

View File

@ -68,8 +68,15 @@ public class AudioHelper
{
bestProcessMatch = audioProcess;
currentIndex = index;
if(string.IsNullOrEmpty(results.DisplayName))
{
session.GetDisplayName(out var displayName);
results.DisplayName = displayName;
}
}
//some apps like discord have multiple volume processes.
//and some apps will be on multiple devices
//so we add all sessions so we can keep them in sync