- GConfClient *client;
- GConfValue *value;
- gint volume, scale, sock, sample_id;
+ float volume = 0;
+ int ret;
+ ca_context *ca_con = NULL;
+ ca_proplist *pl = NULL;
+
+#if 0 /* FIXME: Check volume handling. Would be great not to use Gconf... */
+ GConfClient *client;
+ GConfValue *value;
+ gint gconf_vol;
+
+ /*
+ * The volume is from -0dB to -6dB,
+ The full volume is marked as 2 in gconf */
+ client = gconf_client_get_default ();
+ value = gconf_client_get (client, ALARM_GCONF_PATH, NULL);
+
+ /* We want error cases to match full volume, not silence, so
+ we do not want to use gconf_client_get_int */
+ if (!value || value->type != GCONF_VALUE_INT)
+ gconf_vol = 2;
+ else
+ gconf_vol = gconf_value_get_int(value);