public DeviceInfo?GetDefaultAudioEndpoint(EDataFlow flow, ERole role) => ComThread.Invoke(() => { var defaultEndpoint = EnumeratorClient.GetDefaultEndpoint(flow, role); if (defaultEndpoint == null) { return(null); } return(new DeviceFullInfo(defaultEndpoint)); });
public MMDevice?GetDefaultMmDevice(EDataFlow flow, ERole role) => ComThread.Invoke(() => EnumeratorClient.GetDefaultEndpoint(flow, role));