<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress.com" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>

<channel>
	<title>nacip &amp;laquo; WordPress.com Tag Feed</title>
	<link>http://wordpress.com/tag/nacip/</link>
	<description>Feed of posts on WordPress.com tagged "nacip"</description>
	<pubDate>Sat, 30 Aug 2008 13:45:52 +0000</pubDate>

	<generator>http://wordpress.com/tags/</generator>
	<language>en</language>

<item>
<title><![CDATA[Doing it in Stereo]]></title>
<link>http://pjsip.wordpress.com/?p=78</link>
<pubDate>Mon, 31 Mar 2008 12:11:34 +0000</pubDate>
<dc:creator>Benny Prijono</dc:creator>
<guid>http://pjsip.wordpress.com/?p=78</guid>
<description><![CDATA[While PJMEDIA have supported stereo audio since day one, it had come with few limitations, for examp]]></description>
<content:encoded><![CDATA[<p>While PJMEDIA have supported stereo audio since day one, it had come with few limitations, for example this capability was not exported in <a href="http://www.pjsip.org/pjsip/docs/html/group__PJSUA__LIB.htm">PJSUA-LIB</a> API, and once stereo mode is set, everything must be set to stereo too. These <a href="http://trac.pjsip.org/repos/ticket/504">have been fixed</a> in the latest SVN now. There is a new configuration field in <em>pjsua_media_config</em> to set the number of channels configuration for both the sound device and the conference bridge (the default is one of course), and more importantly, the conference bridge can now allow media ports with different channel count setting to be registered to it.</p>
<p>As an example of the new capability, application can instantiate both the sound device and the bridge in stereo. If the call is established with a stereo codec (for stereo we only have L16 codec for now), then transmission will be stereo, and if the call is established with the usual mono codec (G.711, G.722, Speex, etc. And oh yes, we do have G.722 now!), then the bridge will correctly perform the stereo - mono conversion, mixing the audio channels as necessary.</p>
<p>Having said all that, you may ask, why? Why bother with stereo at all?</p>
<p>You're right, stereo is uncommon in VoIP. But nowadays SIP is used in broader industries than just VoIP. For example, the <a href="http://wiki.ebu.ch">European Broadcasting Union (EBU)</a> is currently looking to standardize <a href="http://wiki.ebu.ch/acip/Main_Page">Audio Contribution over IP (N/ACIP)</a> which is based on standard based protocols such as SIP and RTP, and stereo encoding comes as one of the mandatory requirements. Also on different industry, we're currently looking to integrate PJSIP as a VoIP platform in Virtual World games, in the open source <a href="http://sourceforge.net/projects/voipforvw/">VoIP for Virtual World</a> project. This project is still in its very early stage, as it's been published literally just couple of weeks ago. Here I guess stereo will play quite an important role, because of the positional audio requirement. And still there are more use cases for stereo, for example in SIP to radio gateways where people do want to transmit different audio in the left and right channel. The last use case probably is niche, but people do ask for that.</p>
<p>So in conclusion, stereo does have a use case. And I'm glad that we have a pretty smooth support for that.</p>
<p>And how can we enable stereo in the application? Well just set <em>pjsua_media_config.channel_count</em> to 2, and that's just about it! More advanced scenarios are possible of course, but at least it's very easy to get started with it.</p>
]]></content:encoded>
</item>

</channel>
</rss>
