diff src/buddy.c @ 4561:9df99116840a

[gaim-migrate @ 4842] This is the new sound subsystem Lots of stuff got renamed, and everything sound-wise is documented. Gaim now uses libaudiofile and libao to play sounds. Lots of ugly hacks were removed, and now we support playing audio through anything that libao will support. If you need to (you shouldn't) you can force libao to use a specific output driver, by putting a line into ~/.libao like: default_driver=esd You shouldn't need to do this, libao is pretty good at figuring out what driver to use. committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Sun, 09 Feb 2003 01:55:35 +0000
parents d03fcb3f4be2
children 493f050dc11a
line wrap: on
line diff
--- a/src/buddy.c	Sun Feb 09 00:47:57 2003 +0000
+++ b/src/buddy.c	Sun Feb 09 01:55:35 2003 +0000
@@ -45,6 +45,7 @@
 #include <gdk/gdkkeysyms.h>
 #include <gtk/gtk.h>
 #include "prpl.h"
+#include "sound.h"
 #include "gaim.h"
 
 #ifdef _WIN32
@@ -1459,9 +1460,9 @@
 			}
 			if (b->options & OPT_POUNCE_SOUND) {
 				if (strlen(b->sound))
-					play_file(b->sound);
+					gaim_sound_play_file(b->sound);
 				else
-					play_sound(SND_POUNCE_DEFAULT);
+					gaim_sound_play_event(GAIM_SOUND_POUNCE_DEFAULT);
 			}
 
 			if (!(b->options & OPT_POUNCE_SAVE))
@@ -2214,7 +2215,7 @@
 		}
 		if (b->present == 1) {
 			if (bs->sound != 2)
-				play_sound(SND_BUDDY_ARRIVE);
+				gaim_sound_play_event(GAIM_SOUND_BUDDY_ARRIVE);
 			if (blist_options & OPT_BLIST_POPUP)
 				gdk_window_show(blist->window);
 			pm = gdk_pixmap_create_from_xpm_d(blist->window, &bm,
@@ -2276,7 +2277,7 @@
 				   buddies that have already signed
 				   off */
 		if (bs->sound != 1)
-			play_sound(SND_BUDDY_LEAVE);
+			gaim_sound_play_event(GAIM_SOUND_BUDDY_LEAVE);
 		if (blist_options & OPT_BLIST_POPUP)
 			gdk_window_show(blist->window);
 		bs->connlist = g_slist_remove(bs->connlist, gc);