Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Update collaboration sounds, add sounds to screensharing
Nate Butlera7ce602bac09
diff --git a/assets/sounds/joined.wav b/assets/sounds/joined.wavdeleted file mode 100644index 70cd41d16f9..00000000000Binary files a/assets/sounds/joined.wav and /dev/null differdiff --git a/assets/sounds/joined_call.wav b/assets/sounds/joined_call.wavnew file mode 100644index 00000000000..cf6e5ba4dfcBinary files /dev/null and b/assets/sounds/joined_call.wav differdiff --git a/assets/sounds/leave.wav b/assets/sounds/leave.wavdeleted file mode 100644index 27dcea38f45..00000000000Binary files a/assets/sounds/leave.wav and /dev/null differdiff --git a/assets/sounds/leave_call.wav b/assets/sounds/leave_call.wavnew file mode 100644index 00000000000..478b28204f2Binary files /dev/null and b/assets/sounds/leave_call.wav differdiff --git a/assets/sounds/mute.wav b/assets/sounds/mute.wavindex 79023bdf62a..69e8456f6c3 100644Binary files a/assets/sounds/mute.wav and b/assets/sounds/mute.wav differdiff --git a/assets/sounds/start_screenshare.wav b/assets/sounds/start_screenshare.wavnew file mode 100644index 00000000000..7b72a90af16Binary files /dev/null and b/assets/sounds/start_screenshare.wav differdiff --git a/assets/sounds/stop_screenshare.wav b/assets/sounds/stop_screenshare.wavnew file mode 100644index 00000000000..1fe13e21b42Binary files /dev/null and b/assets/sounds/stop_screenshare.wav differdiff --git a/assets/sounds/unmute.wav b/assets/sounds/unmute.wavindex d87decead02..f8c90f69167 100644Binary files a/assets/sounds/unmute.wav and b/assets/sounds/unmute.wav differdiff --git a/crates/audio/src/audio.rs b/crates/audio/src/audio.rsindex 0216bf47be1..233b0f62aa5 100644--- a/crates/audio/src/audio.rs+++ b/crates/audio/src/audio.rs@@ -15,15 +15,19 @@ pub enum Sound {Leave,Mute,Unmute,+ StartScreenshare,+ StopScreenshare,}impl Sound {fn file(&self) -> &'static str {match self {- Self::Joined => "joined",- Self::Leave => "leave",+ Self::Joined => "joined_call",+ Self::Leave => "leave_call",Self::Mute => "mute",Self::Unmute => "unmute",+ Self::StartScreenshare => "start_screenshare",+ Self::StopScreenshare => "stop_screenshare",}}}diff --git a/crates/call/src/room.rs b/crates/call/src/room.rsindex eed73ba1b1d..87e6faf988d 100644--- a/crates/call/src/room.rs+++ b/crates/call/src/room.rs@@ -1222,6 +1222,9 @@ impl Room {};cx.notify();}++ Audio::play_sound(Sound::StartScreenshare, cx);+Ok(())}Err(error) => {@@ -1311,6 +1314,8 @@ impl Room {} => {live_kit.room.unpublish_track(track_publication);cx.notify();++ Audio::play_sound(Sound::StopScreenshare, cx);Ok(())}}