aboutsummaryrefslogtreecommitdiffstats
path: root/mumd/src/audio.rs
diff options
context:
space:
mode:
Diffstat (limited to 'mumd/src/audio.rs')
-rw-r--r--mumd/src/audio.rs8
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 {