<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Me again,<div>it seems the issue opening sound device cannot be closed and I think it requires investigation, I noticed this post in a group about the same error:</div><div><a href="http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/2013-September/016737.html">http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/2013-September/016737.html</a></div><div><br></div><div>Hard to say if they solved and how.</div><div>Elio</div><div><br><div><div>On 11 Nov 2013, at 19:41, Elio Francesconi <<a href="mailto:elio.francesconi@gmail.com">elio.francesconi@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html charset=windows-1252"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Thanks Sebastian,<div> the workaround below, that you proposed, solves my issue. Thanks!</div><div><pre class="bz_comment_text" id="comment_text_2" style="font-size: small; white-space: pre-wrap; width: 50em; color: rgb(51, 51, 51); background-color: rgb(255, 255, 255); position: static; z-index: auto;">osxaudiosrc ! capsfilter caps=audio/x-raw,rate=44100 ! audioconvert !
audioresample ! alawenc ! rtppcmapay ! udpsink host=192.168.1.6 port=5011</pre><div>About the error below I’ve found a way to reproduce it, below I’ll describe you the procedure:</div><div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"><b>2013-11-09 08:17:33.668 ipDoor[314:8403] 08:17:33.668 ERROR:     [0x7e44000] 1207: AUIOClient_StartIO failed (560034163)</b></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"><b>0:00:39.088255000 [333m  314[00m  0x2a737e8 [31;01mERROR  [00m [00;04m             default gstosxcoreaudiocommon.c:128:gst_core_audio_io_proc_start:<osxaudioringbuffer0>[00m AudioOutputUnitStart failed: sqa!</b></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"><b>2013-11-09 08:17:33.670 ipDoor[314:8903] 08:17:33.670 ERROR:     [0x7f70000] >aurioc> 1455: AURemoteIO@0x31ab420: IOThread exiting with error 0x10004006</b></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"><b>2013-11-09 08:17:33.672 ipDoor[314:8403] 08:17:33.672 ERROR:     [0x7e44000] 1207: AUIOClient_StartIO failed (560034163)</b></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"><b>0:00:39.092167000 [333m  314[00m  0x2a737e8 [31;01mERROR  [00m [00;04m             default gstosxcoreaudiocommon.c:128:gst_core_audio_io_proc_start:<osxaudioringbuffer0>[00m AudioOutputUnitStart failed: sqa!</b></div></div><div><br></div><div><br></div><div>I modified the Tutorial2 with this pseudocode and I’m able to reproduce the issue:</div><div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(209, 47, 27);"><span style="color: #78492a">#define LAUNCH_SERVER_AUDIO </span>"osxaudiosrc ! capsfilter caps=audio/x-raw,rate=44100 ! audioconvert ! audioresample ! alawenc ! rtppcmapay ! udpsink host=127.0.0.1 port=5011"</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;"><br></div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(209, 47, 27);"><span style="color: #78492a">#define LAUNCH_CLIENT_AUDIO </span>"udpsrc caps=application/x-rtp,media=(string)audio,clock-rate=(int)8000,encoding-name=(string)PCMA port=5011 ! rtppcmadepay ! alawdec ! audioconvert ! audioresample ! autoaudiosink"</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(0, 132, 0);"><br></div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(0, 132, 0);"><span style="">    </span><span style="color: rgb(79, 129, 135);">sourcePipeline</span><span style=""> = </span><span style="color: rgb(61, 29, 129);">gst_parse_launch</span><span style="">(</span><span style="color: rgb(120, 73, 42);">LAUNCH_SERVER_AUDIO</span><span style="">, &error);</span></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">    <span style="color: rgb(79, 129, 135);">sinkPipeline</span> = <span style="color: rgb(61, 29, 129);">gst_parse_launch</span>(<span style="color: rgb(120, 73, 42);">LAUNCH_CLIENT_AUDIO</span>, &error);</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"><br></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"><div style="margin: 0px; color: rgb(61, 29, 129);"><span style="">    </span><span style="color: #bb2ca2">if</span><span style="">(</span>gst_element_set_state<span style="">(</span><span style="color: #4f8187">sourcePipeline</span><span style="">, </span>GST_STATE_PLAYING<span style="">) == </span>GST_STATE_CHANGE_FAILURE<span style="">) {</span></div><div style="margin: 0px; color: rgb(209, 47, 27);"><span style="">        </span><span style="color: #78492a">GST_ERROR</span><span style="">(</span>"GST_STATE_CHANGE_FAILURE ..."<span style="">);</span></div><div style="margin: 0px;">    }</div><div style="margin: 0px; color: rgb(61, 29, 129);"><span style="">    </span><span style="color: #bb2ca2">if</span><span style="">(</span>gst_element_set_state<span style="">(</span><span style="color: #4f8187">sinkPipeline</span><span style="">, </span>GST_STATE_PLAYING<span style="">) == </span>GST_STATE_CHANGE_FAILURE<span style="">) {</span></div><div style="margin: 0px; color: rgb(209, 47, 27);"><span style="">        </span><span style="color: #78492a">GST_ERROR</span><span style="">(</span>"GST_STATE_CHANGE_FAILURE ..."<span style="">);</span></div><div style="margin: 0px;">    }</div><div style="margin: 0px;"><br></div><div style="margin: 0px;">I noticed that replacing <u>autoaudiosink</u> with <u>osxaudiosink</u> I solved the issue and everything works well.</div><div style="margin: 0px;"><br></div><div style="margin: 0px;">Ciao</div><div style="margin: 0px;">Elio</div><div style="margin: 0px;"><br></div><div style="margin: 0px;">On 10 Nov 2013, at 10:37, Sebastian Dröge <<a href="mailto:sebastian@centricular.com">sebastian@centricular.com</a>> wrote:</div></div></div><div><br class="Apple-interchange-newline"><blockquote type="cite">On So, 2013-11-10 at 10:28 +0100, Elio Francesconi wrote:<br><blockquote type="cite">Thanks a lot Sebastian,<br>this is the file bug:<br><a href="https://bugzilla.gnome.org/show_bug.cgi?id=711764">https://bugzilla.gnome.org/show_bug.cgi?id=711764</a><br>I didn’t try the queue because I don’t know exactly how use it..<br></blockquote><br>For example use a pipeline like this for testing:<br>"osxaudiosrc ! queue ! audioconvert ! audioresample ! queue ! alawenc ! ... "<br><br>-- <br>Sebastian Dröge <<a href="mailto:sebastian@centricular.com">sebastian@centricular.com</a>><br>Centricular Ltd - <a href="http://www.centricular.com/">http://www.centricular.com</a><br>Expertise, Straight from the Source<br>_______________________________________________<br>gstreamer-devel mailing list<br><a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br><a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br></blockquote></div><br></div></div></blockquote></div><br></div></body></html>