Skip to content

Commit

Permalink
fix: getting all device that have name
Browse files Browse the repository at this point in the history
  • Loading branch information
Belphemur committed Apr 2, 2024
1 parent 0d31968 commit d695d2d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions SoundSwitch.Audio.Manager/AudioSwitcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -332,8 +332,9 @@ public IEnumerable<DeviceFullInfo> GetAudioEndpoints(EDataFlow flow, EDeviceStat
Trace.TraceError("Couldn't get device info: {0}", e);
return null;
}
}).Where(device => device != null)
.Where(device => string.IsNullOrEmpty(device?.Name))
})
.Where(device => device != null)
.Where(device => !string.IsNullOrEmpty(device?.Name))
.Cast<DeviceFullInfo>().ToArray();
});

Expand Down

0 comments on commit d695d2d

Please sign in to comment.