Skip to content

Commit

Permalink
fix: Fix breaking changes
Browse files Browse the repository at this point in the history
  • Loading branch information
34j committed Nov 4, 2022
1 parent 5745212 commit 050a919
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ZoomCloser/Services/Audio/AudioService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ public AudioService(MMDeviceEnumerator devEnum)

private IEnumerable<AudioSessionControl2> GetSessions()
{
var result = devEnum.GetDefaultAudioEndpoint(EDataFlow.eRender, ERole.eMultimedia)
var result = devEnum.GetDefaultAudioEndpoint(DataFlow.Render, Role.Multimedia)
.AudioSessionManager2.Sessions/*EnumerateAudioEndPoints(EDataFlow.eAll, DEVICE_STATE.DEVICE_STATEMASK_ALL)
.SelectMany(s => s?.AudioSessionManager2?.Sessions)*/
.Where(session =>
{
string processName = Process.GetProcessById((int)session.GetProcessID).ProcessName;
string processName = Process.GetProcessById((int)session.ProcessID).ProcessName;
return processName.Contains("Zoom");
});
result.DebugIEnumerable(s => s.DisplayName);
Expand Down

0 comments on commit 050a919

Please sign in to comment.