changeset 17049:5a308f09c871

ALSA Gstreamer sink. Mostly to see if this still crashes Luke.
author Sean Egan <seanegan@gmail.com>
date Tue, 22 May 2007 20:46:08 +0000
parents cc9242ce1435
children 580c6c5d9480 d8102e923bd1
files pidgin/gtkprefs.c pidgin/gtksound.c
diffstat 2 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkprefs.c	Tue May 15 01:06:02 2007 +0000
+++ b/pidgin/gtkprefs.c	Tue May 22 20:46:08 2007 +0000
@@ -1602,6 +1602,7 @@
 #ifdef USE_GSTREAMER
 			_("Automatic"), "automatic",
 			"ESD", "esd",
+			"ALSA", "alsa",
 #endif
 			_("Command"), "custom",
 			_("No sounds"), "none",
--- a/pidgin/gtksound.c	Tue May 15 01:06:02 2007 +0000
+++ b/pidgin/gtksound.c	Tue May 22 20:46:08 2007 +0000
@@ -466,6 +466,12 @@
 			purple_debug_error("sound", "Unable to create GStreamer audiosink.\n");
 			return;
 		}
+	} else if (!strcmp(method, "alsa")) {
+		sink = gst_element_factory_make("alsasink", "sink");
+		if (!sink) {
+			purple_debug_error("sound", "Unable to create GStreamer audiosink.\n");
+			return;
+		}
 	} else {
 		purple_debug_error("sound", "Unknown sound method '%s'\n", method);
 		return;