Skip to content

Commit

Permalink
fix(Profile::Communication): Set properly the communication device fr…
Browse files Browse the repository at this point in the history
…om a profile.

Fixes #1104
  • Loading branch information
Belphemur committed Feb 3, 2023
1 parent 801dea4 commit 4a83ac5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SoundSwitch/Framework/Profile/Profile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,11 @@ internal IEnumerable<DeviceRoleWrapper> Devices
get
{
if (Playback != null)
yield return new DeviceRoleWrapper(Playback, Communication == null || !Playback.Equals(Communication) ? ERole.ERole_enum_count : ERole.eConsole | ERole.eMultimedia);
yield return new DeviceRoleWrapper(Playback, Playback.Equals(Communication) ? ERole.ERole_enum_count : ERole.eConsole | ERole.eMultimedia);
if (Communication != null && !Communication.Equals(Playback))
yield return new DeviceRoleWrapper(Communication, ERole.eCommunications);
if (Recording != null)
yield return new DeviceRoleWrapper(Recording, RecordingCommunication == null || !Recording.Equals(RecordingCommunication) ? ERole.ERole_enum_count : ERole.eConsole | ERole.eMultimedia);
yield return new DeviceRoleWrapper(Recording, Recording.Equals(RecordingCommunication) ? ERole.ERole_enum_count : ERole.eConsole | ERole.eMultimedia);
if (RecordingCommunication != null && !RecordingCommunication.Equals(Recording))
yield return new DeviceRoleWrapper(RecordingCommunication, ERole.eCommunications);
}
Expand Down

0 comments on commit 4a83ac5

Please sign in to comment.