<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office"><head><!--[if gte mso 9]><xml><o:OfficeDocumentSettings><o:AllowPNG/><o:PixelsPerInch>96</o:PixelsPerInch></o:OfficeDocumentSettings></xml><![endif]--></head><body><div style="color:#000; background-color:#fff; font-family:lucida console, sans-serif;font-size:13px"><div id="yui_3_16_0_ym19_1_1523380773214_18503"><span>Hi,</span></div><div id="yui_3_16_0_ym19_1_1523380773214_18502"><span><br></span></div><div id="yui_3_16_0_ym19_1_1523380773214_18480"><span id="yui_3_16_0_ym19_1_1523380773214_18481">I worked on a similar issue affecting directsoundsink.</span></div><div id="yui_3_16_0_ym19_1_1523380773214_18588"><span id="yui_3_16_0_ym19_1_1523380773214_18481"><br></span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1523380773214_18577"><span id="yui_3_16_0_ym19_1_1523380773214_18481">See <a href="https://bugzilla.gnome.org/show_bug.cgi?id=788362" class="" id="yui_3_16_0_ym19_1_1523380773214_18575">https://bugzilla.gnome.org/show_bug.cgi?id=788362</a><br></span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1523380773214_18654"><span id="yui_3_16_0_ym19_1_1523380773214_18481">Note that the issue title is wrong (should mention directsoundsink and note directsoundsrc).</span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1523380773214_19033"><span id="yui_3_16_0_ym19_1_1523380773214_18481">In that issue I also talk about alsasink.</span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1523380773214_18723"><span id="yui_3_16_0_ym19_1_1523380773214_18481"><br></span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1523380773214_18724"><span id="yui_3_16_0_ym19_1_1523380773214_18481">Related issues:</span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1523380773214_18827"><span id="yui_3_16_0_ym19_1_1523380773214_18481"><a href="https://bugzilla.gnome.org/show_bug.cgi?id=788361" class="" id="yui_3_16_0_ym19_1_1523380773214_19024">https://bugzilla.gnome.org/show_bug.cgi?id=788361</a><br></span></div><div id="yui_3_16_0_ym19_1_1523380773214_19034" dir="ltr"><a href="https://bugzilla.gnome.org/show_bug.cgi?id=788562">https://bugzilla.gnome.org/show_bug.cgi?id=788562</a></div><div dir="ltr"><br></div><div dir="ltr">Regards,</div><div dir="ltr">Philippe.<br></div><div id="yui_3_16_0_ym19_1_1523380773214_19254"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1523380773214_19255"><span id="yui_3_16_0_ym19_1_1523380773214_18481"><br></span></div><div id="yui_3_16_0_ym19_1_1523380773214_18924"><br></div><div id="enhancr2_b815243c-d423-1fd9-345d-b3ee8263bac0" class="yahoo-link-enhancr-card yahoo-link-enhancr-not-allow-cover ymail-preserve-class ymail-preserve-style" style="max-width:400px;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;" data-url="https://bugzilla.gnome.org/show_bug.cgi?id=788562" data-type="yenhancr" data-category="article" data-embed-url="" data-size="medium" dir="ltr" contenteditable="false"> <a href="https://bugzilla.gnome.org/show_bug.cgi?id=788562" style="text-decoration:none !important; color: #000 !important" class="yahoo-enhancr-cardlink" target="_blank" rel="noreferrer" id="yui_3_16_0_ym19_1_1523380773214_18912"> <table class="card-wrapper yahoo-compose-table-card" style="max-width:400px;" id="yui_3_16_0_ym19_1_1523380773214_18911" cellspacing="0" cellpadding="0" border="0"> <tbody id="yui_3_16_0_ym19_1_1523380773214_18910"><tr id="yui_3_16_0_ym19_1_1523380773214_18909"> <td id="yui_3_16_0_ym19_1_1523380773214_18908" width="400">  </td> </tr> </tbody></table> </a></div><div id="yui_3_16_0_ym19_1_1523380773214_18956"><br></div> <div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: lucida console, sans-serif; font-size: 13px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"><font size="2" face="Arial"> Le Jeudi 12 avril 2018 10h05, Robert Rosengren <robert.rosengren@axis.com> a écrit :<br></font></div>  <br><br> <div class="y_msg_container"><div dir="ltr">Hi,<br></div><div dir="ltr"><br></div><div dir="ltr">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. <br></div><div dir="ltr"><br></div><div dir="ltr">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?<br></div><div dir="ltr"><br></div><div dir="ltr">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.<br></div><div dir="ltr"><br></div><div dir="ltr">Does this sound like a good idea, or is there any pitfalls by actually pausing/resuming ALSA device?<br></div><div dir="ltr"><br></div><div dir="ltr">BR, Robert<br></div><div dir="ltr">_______________________________________________<br></div><div dir="ltr">gstreamer-devel mailing list<br></div><div dir="ltr"><a ymailto="mailto:gstreamer-devel@lists.freedesktop.org" href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br></div><div dir="ltr"><a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br></div><br><br></div>  </div> </div>  </div></div></body></html>