public static void ClearOutgoingConnections(this IPlayback playback) { foreach (var audioDevice in playback.OutgoingConnections.ToArray()) { playback.RemoveOutgoingConnection(audioDevice); } }
public void RemoveOutgoingConnection(IOutputAudioDevice audioDevice) { OutgoingConnections.Remove(audioDevice); _playback?.RemoveOutgoingConnection(audioDevice); }