diff options
| author | Eskil Queseth <eskilq@kth.se> | 2020-11-16 02:13:25 +0100 |
|---|---|---|
| committer | Eskil Queseth <eskilq@kth.se> | 2020-11-16 02:13:25 +0100 |
| commit | 1bf223de5aca7d39347efa468558e14c02fe8d6a (patch) | |
| tree | ad9ace68dc41ad87cccab5b1a93ec9f0e55aa681 /mumd/src/audio.rs | |
| parent | c3fabb1f9224cdf8fd68ad186baeffc93c96ce5c (diff) | |
| download | mum-1bf223de5aca7d39347efa468558e14c02fe8d6a.tar.gz | |
add sound for muting and unmuting self
Diffstat (limited to 'mumd/src/audio.rs')
| -rw-r--r-- | mumd/src/audio.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mumd/src/audio.rs b/mumd/src/audio.rs index d1ef106..7f6dd51 100644 --- a/mumd/src/audio.rs +++ b/mumd/src/audio.rs @@ -21,6 +21,10 @@ pub const EVENT_SOUNDS: &[(&str, NotificationEvents)] = &[ ("resources/channel_leave.wav", NotificationEvents::UserDisconnected), ("resources/channel_join.wav", NotificationEvents::UserJoinedChannel), ("resources/channel_leave.wav", NotificationEvents::UserLeftChannel), + ("resources/mute.wav", NotificationEvents::Mute), + ("resources/unmute.wav", NotificationEvents::Unmute), + ("resources/deafen.wav", NotificationEvents::Deafen), + ("resources/undeafen.wav", NotificationEvents::Undeafen), ]; const SAMPLE_RATE: u32 = 48000; @@ -33,6 +37,10 @@ pub enum NotificationEvents { UserDisconnected, UserJoinedChannel, UserLeftChannel, + Mute, + Unmute, + Deafen, + Undeafen, } pub struct Audio { |
