diff --git a/assets/sounds/joined.wav b/assets/sounds/joined.wav deleted file mode 100644 index 70cd41d16f..0000000000 Binary files a/assets/sounds/joined.wav and /dev/null differ diff --git a/assets/sounds/joined_call.wav b/assets/sounds/joined_call.wav new file mode 100644 index 0000000000..cf6e5ba4df Binary files /dev/null and b/assets/sounds/joined_call.wav differ diff --git a/assets/sounds/leave.wav b/assets/sounds/leave.wav deleted file mode 100644 index 27dcea38f4..0000000000 Binary files a/assets/sounds/leave.wav and /dev/null differ diff --git a/assets/sounds/leave_call.wav b/assets/sounds/leave_call.wav new file mode 100644 index 0000000000..478b28204f Binary files /dev/null and b/assets/sounds/leave_call.wav differ diff --git a/assets/sounds/mute.wav b/assets/sounds/mute.wav index 79023bdf62..69e8456f6c 100644 Binary files a/assets/sounds/mute.wav and b/assets/sounds/mute.wav differ diff --git a/assets/sounds/start_screenshare.wav b/assets/sounds/start_screenshare.wav new file mode 100644 index 0000000000..7b72a90af1 Binary files /dev/null and b/assets/sounds/start_screenshare.wav differ diff --git a/assets/sounds/stop_screenshare.wav b/assets/sounds/stop_screenshare.wav new file mode 100644 index 0000000000..1fe13e21b4 Binary files /dev/null and b/assets/sounds/stop_screenshare.wav differ diff --git a/assets/sounds/unmute.wav b/assets/sounds/unmute.wav index d87decead0..f8c90f6916 100644 Binary files a/assets/sounds/unmute.wav and b/assets/sounds/unmute.wav differ diff --git a/crates/audio/src/audio.rs b/crates/audio/src/audio.rs index 0216bf47be..233b0f62aa 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.rs index eed73ba1b1..87e6faf988 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(()) } }