Update collaboration sounds, add sounds to screensharing

Nate Butler created

Change summary

assets/sounds/joined.wav            | 0 
assets/sounds/joined_call.wav       | 0 
assets/sounds/leave.wav             | 0 
assets/sounds/leave_call.wav        | 0 
assets/sounds/mute.wav              | 0 
assets/sounds/start_screenshare.wav | 0 
assets/sounds/stop_screenshare.wav  | 0 
assets/sounds/unmute.wav            | 0 
crates/audio/src/audio.rs           | 8 ++++++--
crates/call/src/room.rs             | 5 +++++
10 files changed, 11 insertions(+), 2 deletions(-)

Detailed changes

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",
         }
     }
 }

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(())
             }
         }