dynamic controlled chain of volume elements

Sebastian Dröge sebastian at centricular.com
Wed Jun 29 16:21:34 UTC 2016


On Mi, 2016-06-29 at 04:05 -0700, Maik Scholz wrote:
> Hi,
> 
> I like to attenuate an audio stream by a summary of different volume
> values
> (e.g. base gain, current volume, fade-in ramp, ...).
> 
> This would be possible using a chains of volume elements ...
> =>volume[base gain]=>volume[current
> volume]=>volume[fade-in-ramp]=>audiomixer
> ... but I expect this is not the optimum for the CPU utilization.
> Isn't it?
> 
> I did some tests with the gst-control-source concept.
> I implemented a helper class with a property for each volume type. 
> On change, the result of all types set to the src-pad volume of the
> audiomixer.
> Unfortunately, this does not work because my helper class can't
> support the
> controller.
> 
> Is there a alternative for this use-case?

Why can't your helper class not support the controller API? It would
seem to be just another GstControlSource on which you can set your N
properties and which would then generate a single volume value from
that. Or am I misunderstanding what you try to achieve?

-- 
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160629/134f6b96/attachment-0001.sig>


More information about the gstreamer-devel mailing list