From 07d06b6946e23ecffbf5549376cf464013222274 Mon Sep 17 00:00:00 2001 From: Rubens Brandao Date: Thu, 8 Apr 2021 17:14:29 -0300 Subject: Create a trait and default device audio output Also removed add/remove/clear client from audio interface, it is done on demand now. --- mumd/src/state.rs | 4 ---- 1 file changed, 4 deletions(-) (limited to 'mumd/src/state.rs') diff --git a/mumd/src/state.rs b/mumd/src/state.rs index 313a985..132da74 100644 --- a/mumd/src/state.rs +++ b/mumd/src/state.rs @@ -371,7 +371,6 @@ impl State { } self.server = None; - self.audio_output.clear_clients(); self.phase_watcher .0 @@ -457,8 +456,6 @@ impl State { *self.server_mut().unwrap().session_id_mut() = Some(session); } else { // this is someone else - self.audio_output_mut().add_client(session); - // send notification only if we've passed the connecting phase if matches!(*self.phase_receiver().borrow(), StatePhase::Connected(_)) { let channel_id = msg.get_channel_id(); @@ -569,7 +566,6 @@ impl State { } } - self.audio_output().remove_client(msg.get_session()); self.server_mut() .unwrap() .users_mut() -- cgit v1.2.1