diff options
| author | Rubens Brandao <git@rubens.io> | 2021-04-08 22:14:29 +0200 |
|---|---|---|
| committer | Rubens Brandao <git@rubens.io> | 2021-04-08 22:14:29 +0200 |
| commit | 07d06b6946e23ecffbf5549376cf464013222274 (patch) | |
| tree | 8f26ef42b36c6dd87539c04111ce6a0ca06f7848 /mumd/src/state.rs | |
| parent | 7fed8f81222de570d864487605e42b5cbb023218 (diff) | |
| download | mum-07d06b6946e23ecffbf5549376cf464013222274.tar.gz | |
Create a trait and default device audio output
Also removed add/remove/clear client from audio interface, it is done on
demand now.
Diffstat (limited to 'mumd/src/state.rs')
| -rw-r--r-- | mumd/src/state.rs | 4 |
1 files changed, 0 insertions, 4 deletions
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() |
