Enlightenment CVS committal
Author : doursse
Project : e17
Module : libs/emotion
Dir : e17/libs/emotion/src/modules
Modified Files:
emotion_gstreamer.c
Log Message:
volume is between 0 and 1, not 0 and 100
===================================================================
RCS file: /cvs/e/e17/libs/emotion/src/modules/emotion_gstreamer.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -3 -r1.15 -r1.16
--- emotion_gstreamer.c 21 May 2006 11:13:05 -0000 1.15
+++ emotion_gstreamer.c 21 May 2006 18:24:24 -0000 1.16
@@ -1028,7 +1028,7 @@
if (mute)
g_object_set (G_OBJECT (volume), "volume", 0.0, NULL);
else
- g_object_set (G_OBJECT (volume), "volume", ev->volume / 10.0, NULL);
+ g_object_set (G_OBJECT (volume), "volume", ev->volume * 10.0, NULL);
gst_object_unref (volume);
}
@@ -1054,13 +1054,13 @@
if (vol < 0.0)
vol = 0.0;
- if (vol > 100.0)
- vol = 100.0;
+ if (vol > 1.0)
+ vol = 1.0;
ev->volume = vol;
volume = gst_bin_get_by_name (GST_BIN (ev->pipeline), "volume");
if (!volume) return;
g_object_set (G_OBJECT (volume), "volume",
- vol / 10.0, NULL);
+ vol * 10.0, NULL);
gst_object_unref (volume);
}
@@ -1559,7 +1559,7 @@
resample = gst_element_factory_make ("audioresample", NULL);
volume = gst_element_factory_make ("volume", "volume");
g_object_get (G_OBJECT (volume), "volume", &vol, NULL);
- ev->volume = vol * 10.0;
+ ev->volume = vol / 10.0;
if (index == 1)
sink = gst_element_factory_make ("autoaudiosink", NULL);
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs