Smooth volume changes(ramping) on state changes

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Smooth volume changes(ramping) on state changes

Baek Chang
Hi everyone,

I am trying to do the following as a test in the volume element in gst-plugins-base.

On volume changes, I want to smoothly ramp between the requested volumes when the pipeline goes into playing or paused states.

Going from PLAYING to PAUSED works as expected, the audio buffers are changing smoothly.
But, going from PAUSED to PLAYING, no audio buffers are being processed or sent to the volume element when the state change is received, so it cuts off with a discontinuity.

Is there a way to ensure that the volume ramp will be applied before the rest of the pipeline is paused?  Won't the pads stop pushing buffers to the volume element by the time the change state message is received by the volume element?

Thanks
--
-baeksanchang

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel