diff src/sound.c @ 3319:3a05fcb133c4

[gaim-migrate @ 3337] No UI for this (yet)... but plugins can use it. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Sun, 16 Jun 2002 20:03:31 +0000
parents 7b867d79da96
children 03daf01a8000
line wrap: on
line diff
--- a/src/sound.c	Sun Jun 16 17:14:28 2002 +0000
+++ b/src/sound.c	Sun Jun 16 20:03:31 2002 +0000
@@ -52,6 +52,9 @@
 #include "sounds/Receive.h"
 #include "sounds/RedAlert.h"
 
+
+gboolean mute_sounds = 0;
+
 /* label and opt are null for the buddy pounce because it's configured *
  * per pounce. NULL option means it doesn't get displayed in the sound *
  * preferences box */
@@ -551,6 +554,10 @@
 
 void play_sound(int sound)
 {
+
+	if (mute_sounds)
+		return;
+	
 	if (awaymessage && !(sound_options & OPT_SOUND_WHEN_AWAY))
 		return;