pidgin.vv: 35623aa2: Change media volume preference to be spe...
maiku at soc.pidgin.im
maiku at soc.pidgin.im
Fri Apr 3 02:50:40 EDT 2009
-----------------------------------------------------------------
Revision: 35623aa237d93d47cb62ca57d9dd0009291a8a37
Ancestor: 32567c86cb5156a66fbce9eafef9e70767f06b5f
Author: maiku at soc.pidgin.im
Date: 2009-04-03T06:31:56
Branch: im.pidgin.pidgin.vv
URL: http://d.pidgin.im/viewmtn/revision/info/35623aa237d93d47cb62ca57d9dd0009291a8a37
Modified files:
finch/gntmedia.c
ChangeLog:
Change media volume preference to be specific to Finch.
-------------- next part --------------
============================================================
--- finch/gntmedia.c 5db0c74c0b64b256173d6439e0b1861379beb821
+++ finch/gntmedia.c 04315bb0df7fda75e8eda9ec9cff260e224e4036
@@ -424,7 +424,7 @@ create_default_audio_src(PurpleMedia *me
const gchar *audio_device = purple_prefs_get_string(
"/purple/media/audio/device");
double input_volume = purple_prefs_get_int(
- "/purple/media/audio/volume/input")/10.0;
+ "/finch/media/audio/volume/input")/10.0;
bin = gst_bin_new("finchdefaultaudiosrc");
src = gst_element_factory_make("alsasrc", "asrc");
@@ -449,7 +449,7 @@ create_default_audio_sink(PurpleMedia *m
GstElement *bin, *sink, *volume, *queue;
GstPad *pad, *ghost;
double output_volume = purple_prefs_get_int(
- "/purple/media/audio/volume/output")/10.0;
+ "/finch/media/audio/volume/output")/10.0;
bin = gst_bin_new("pidginrecvaudiobin");
sink = gst_element_factory_make("alsasink", "asink");
@@ -501,6 +501,12 @@ void finch_media_manager_init(void)
purple_debug_info("gntmedia", "Registering media element types\n");
purple_media_manager_set_active_element(manager, default_audio_src);
purple_media_manager_set_active_element(manager, default_audio_sink);
+
+ purple_prefs_add_none("/finch/media");
+ purple_prefs_add_none("/finch/media/audio");
+ purple_prefs_add_none("/finch/media/audio/volume");
+ purple_prefs_add_int("/finch/media/audio/volume/input", 10);
+ purple_prefs_add_int("/finch/media/audio/volume/output", 10);
#endif
}
More information about the Commits
mailing list