<div dir="ltr"><div><div><div>Thank Tim,<br><br></div>as far as I see interaudiosrc can be used to communicate within one process, not between two separate processes? I need to do inter-process communication. Effectively I need to achieve what interaudiosrc/sink does but between processes. </div></div><div><br></div>m.<br></div><div class="gmail_extra"><br><div class="gmail_quote">2016-07-06 15:02 GMT+02:00 Tim Müller <span dir="ltr"><<a href="mailto:tim@centricular.com" target="_blank">tim@centricular.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Wed, 2016-07-06 at 13:13 +0200, <a href="mailto:marcin@saepia.net">marcin@saepia.net</a> wrote:<br>
<br>
Hi,<br>
<span class=""><br>
> I am developing an app in which I use shmsink/shmsrc to communicate<br>
> between processes. They send audio to each other.<br>
><br>
> If data in the sender is not flowing (e.g. I fetch file over HTTP and<br>
> the transfer is temporarily stopped) the shmsrc also stops, as<br>
> there's no data to consume.<br>
><br>
> I would prefer that it keeps going and playing silence. Is there any<br>
> element for this? (maybe audiorate?)<br>
<br>
</span>Simplest way might be to just do<br>
<br>
... ! interaudiosink<br>
<br>
interaudiosrc ! shmsink<br>
<br>
(in which case interaudiosrc will keep producing silence even if you<br>
stop feeding data into interaudiosink)<br>
<br>
Other than what Nicolas already suggested, you could also write a<br>
GstAudioSink baseclass that outputs data via shm, in that case the<br>
audiosink/ringbuffer will keep writing silence samples if no data<br>
arrives (assuming the pipeline stays in playing state).<br>
<br>
Cheers<br>
<span class="HOEnZb"><font color="#888888"> -Tim<br>
<br>
--<br>
<br>
Tim Müller, Centricular Ltd - <a href="http://www.centricular.com" rel="noreferrer" target="_blank">http://www.centricular.com</a><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</font></span></blockquote></div><br></div>