summaryrefslogtreecommitdiff
path: root/legacy/emotion/src/modules/gstreamer/emotion_gstreamer.c
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@gmail.com>2008-10-06 21:37:03 +0000
committerGustavo Sverzut Barbieri <barbieri@gmail.com>2008-10-06 21:37:03 +0000
commit030a0f6e52d5be24373f93a8cf071a2e4df2b4b5 (patch)
treecab4b536bcdfd5832748fe019beef5f2c79baa1d /legacy/emotion/src/modules/gstreamer/emotion_gstreamer.c
parent922509b98d20e009e3abb1d214a2425cf07c8297 (diff)
emotion-gstreamer: use proper scale for volume.
Albeit gst-inspect returns a range from 0.0 to 10.0 for volume, anything more than 1.0 will be distorted and sound horible. SVN revision: 36485
Diffstat (limited to '')
-rw-r--r--legacy/emotion/src/modules/gstreamer/emotion_gstreamer.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/legacy/emotion/src/modules/gstreamer/emotion_gstreamer.c b/legacy/emotion/src/modules/gstreamer/emotion_gstreamer.c
index 01d989443f..97d2491d99 100644
--- a/legacy/emotion/src/modules/gstreamer/emotion_gstreamer.c
+++ b/legacy/emotion/src/modules/gstreamer/emotion_gstreamer.c
@@ -1060,7 +1060,7 @@ em_audio_channel_mute_set(void *video,
1060 if (mute) 1060 if (mute)
1061 g_object_set(G_OBJECT(volume), "volume", 0.0, NULL); 1061 g_object_set(G_OBJECT(volume), "volume", 0.0, NULL);
1062 else 1062 else
1063 g_object_set(G_OBJECT(volume), "volume", ev->volume * 10.0, NULL); 1063 g_object_set(G_OBJECT(volume), "volume", ev->volume, NULL);
1064 1064
1065 gst_object_unref(volume); 1065 gst_object_unref(volume);
1066} 1066}
@@ -1091,8 +1091,7 @@ em_audio_channel_volume_set(void *video,
1091 ev->volume = vol; 1091 ev->volume = vol;
1092 volume = gst_bin_get_by_name(GST_BIN(ev->pipeline), "volume"); 1092 volume = gst_bin_get_by_name(GST_BIN(ev->pipeline), "volume");
1093 if (!volume) return; 1093 if (!volume) return;
1094 g_object_set(G_OBJECT(volume), "volume", 1094 g_object_set(G_OBJECT(volume), "volume", vol, NULL);
1095 vol * 10.0, NULL);
1096 gst_object_unref(volume); 1095 gst_object_unref(volume);
1097} 1096}
1098 1097