alsasink pause

philippe renon philippe_renon at yahoo.fr
Thu Apr 12 08:18:18 UTC 2018


Hi,
I worked on a similar issue affecting directsoundsink.
See https://bugzilla.gnome.org/show_bug.cgi?id=788362
Note that the issue title is wrong (should mention directsoundsink and note directsoundsrc).In that issue I also talk about alsasink.
Related issues:https://bugzilla.gnome.org/show_bug.cgi?id=788361
https://bugzilla.gnome.org/show_bug.cgi?id=788562
Regards,Philippe.



  
|   |

 
 

    Le Jeudi 12 avril 2018 10h05, Robert Rosengren <robert.rosengren at axis.com> a écrit :
 

 Hi,

I noticed that when pausing an audio pipeline ending up in the alsasink, the sink itself does not care about state changes. Should the alsasink actually pause the ALSA device upon a pausing the pipeline? The benefit would be if the ALSA-device have configured long buffers/latency, the audio would be paused instantly instead of playing until buffer is empty. 

Looking into the code of gstalsasink, there does not seem to exist any callbacks from gstaudiosink notifying on pause and gstalsasink has not registered for change_state callbacks. Which mechanism would be the appropriate way for gstalsasink to handle pause?

Not all ALSA devices support pause, and this should be retrieved from ALSA layer. In addition, one might want to be able to configure this via property.

Does this sound like a good idea, or is there any pitfalls by actually pausing/resuming ALSA device?

BR, Robert
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel at lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20180412/6c961cc8/attachment.html>


More information about the gstreamer-devel mailing list