<div dir="ltr">Interesting. I'm using GStreamer 1.0.5 from the gstreamer-developers PPA in Ubuntu. Any chance this missed release somehow? Or am I doing something strange to cause it? The code used is literally just what I posted before.<br>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On 10 March 2013 15:47, Stefan Sauer <span dir="ltr"><<a href="mailto:ensonic@hora-obscura.de" target="_blank">ensonic@hora-obscura.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"><div class="im">
<div>On 08.03.2013 22:22, Nox Deleo wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">If I set up a control binding to the 'volume'
property of the volume element, it reports 'Failed to get values
from controller'.</div>
</blockquote></div>
This is fixed in git since quite a while. The volume element
requests an array of volume factor values. This ensures smooth
volume ramping for cases where block sizes are big. This code path
had a bug.<br>
<br>
Stefan<br>
<blockquote type="cite"><div><div class="h5">
<div dir="ltr">
<div><br>
</div>
<div>I'm using the following (Python) code.<br>
<div>
<div><br>
</div>
<div>
<div>self.volume_1 = Gst.ElementFactory.make('volume',
'volume_1')</div>
<div>self.volume_2 = Gst.ElementFactory.make('volume',
'volume_2')</div>
</div>
<div><br>
</div>
<div>
<div>self.volume_1_cs =
GstController.InterpolationControlSource.new()</div>
<div>self.volume_2_cs =
GstController.InterpolationControlSource.new()</div>
<div>self.volume_1.add_control_binding(GstController.DirectControlBinding.new(self.volume_1,
'volume', self.volume_1_cs))</div>
<div>self.volume_2.add_control_binding(GstController.DirectControlBinding.new(self.volume_2,
'volume', self.volume_2_cs))</div>
<div>self.volume_1_cs.set_property('mode',
GstController.InterpolationMode.CUBIC)</div>
<div>self.volume_2_cs.set_property('mode',
GstController.InterpolationMode.CUBIC)</div>
</div>
<div><br>
</div>
<div>Could this be related to this thread?:</div>
<div><a href="http://gstreamer-devel.966125.n4.nabble.com/1-0-controller-API-td4571962.html" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/1-0-controller-API-td4571962.html</a></div>
</div>
</div>
<div><br>
</div>
<div>I'm able to work around this using the
audioamplify plugin for now, but it seems I'm still not
getting the controller stuff to work. I don't think I'm
grasping exactly how the whole controller thing works, despite
taking a look at a design doc and a few code examples.</div>
<div><br>
</div>
<div>What I'm trying to do is implement a smooth
crossfade between two audio sources a few seconds before the
end of the currently playing one. So I've set up control
sources as above (save for using linear interpolation with
audioamplify instead), and I've been trying to get the volumes
to change using code like this:</div>
<div><br>
</div>
<div>self.volume_1_cs.set(1 * Gst.SECOND, 1.0)<br>
</div>
<div>...and...</div>
<div>
<div>successful, time =
self.src_1.query_position(Gst.Format.TIME)</div>
<div>self.volume_1_cs.set(time + (1 * Gst.SECOND), 0.0)</div>
<div><br>
</div>
<div>The functions return true, so they say they're
doing things, but I can't hear any difference. I just can't
get my head around how this all works. Apologies if I'm just
being dense.</div>
</div>
</div>
<br>
<fieldset></fieldset>
<br>
</div></div><pre>_______________________________________________
gstreamer-devel mailing list
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a>
</pre>
</blockquote>
<br>
</div>
<br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br></div>