<div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13px">Just a note to add - I&#39;ve been running ten to twenty concurrent calls listening to the sixteen channels of soundcards via an updated pablio.h and so far, with these settings in portaudio.conf.xml:</span><div style="font-family:arial,sans-serif;font-size:13px">
<br></div><div style="font-family:arial,sans-serif;font-size:13px"><div>  &lt;streams&gt;</div><div><br></div><div><span style="white-space:pre-wrap">        </span>&lt;stream name=&quot;M-AUDIO-ONE&quot;&gt;</div><div><span style="white-space:pre-wrap">                </span>&lt;param name=&quot;indev&quot; value=&quot;M Audio Delta 1010: ICE1712 multi (hw:0,0)&quot; /&gt;</div>
<div><span style="white-space:pre-wrap">                </span>&lt;param name=&quot;outdev&quot; value=&quot;M Audio Delta 1010: ICE1712 multi (hw:0,0)&quot; /&gt;</div><div><span style="white-space:pre-wrap">                </span>&lt;param name=&quot;sample-rate&quot; value=&quot;8000&quot; /&gt;</div>
<div><span style="white-space:pre-wrap">                </span>&lt;param name=&quot;codec-ms&quot; value=&quot;20&quot; /&gt;</div><div><span style="white-space:pre-wrap">                </span>&lt;param name=&quot;channels&quot; value=&quot;8&quot; /&gt;</div>
<div>  <span style="white-space:pre-wrap">        </span>&lt;/stream&gt;</div><div><br></div><div><span style="white-space:pre-wrap">        </span>&lt;stream name=&quot;M-AUDIO-TWO&quot;&gt;</div><div><span style="white-space:pre-wrap">                </span>&lt;param name=&quot;indev&quot; value=&quot;M Audio Delta 1010: ICE1712 multi (hw:1,0)&quot; /&gt;</div>
<div><span style="white-space:pre-wrap">                </span>&lt;param name=&quot;outdev&quot; value=&quot;M Audio Delta 1010: ICE1712 multi (hw:1,0)&quot; /&gt;</div><div><span style="white-space:pre-wrap">                </span>&lt;param name=&quot;sample-rate&quot; value=&quot;8000&quot; /&gt;</div>
<div><span style="white-space:pre-wrap">                </span>&lt;param name=&quot;codec-ms&quot; value=&quot;20&quot; /&gt;</div><div><span style="white-space:pre-wrap">                </span>&lt;param name=&quot;channels&quot; value=&quot;8&quot; /&gt;</div>
<div>  <span style="white-space:pre-wrap">        </span>&lt;/stream&gt;</div><div><br></div><div>  &lt;/streams&gt;</div></div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">
and with pablio.h:</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">/*! Maximum number of channels per stream */</div><div style="font-family:arial,sans-serif;font-size:13px">
#define MAX_IO_CHANNELS 8</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">No issues so far, but it&#39;s only been one day.</div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Tue, Nov 26, 2013 at 11:23 PM, Erik M. Devane - Comms Guy <span dir="ltr">&lt;<a href="mailto:emdevane@gmail.com" target="_blank">emdevane@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13px">Dear all,</span><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">I&#39;ve been fighting an issue with PortAudio on CentOS for a few days now: I have two Delta 1010 cards which I&#39;m using with mod_portaudio streams.</div>

<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">On Windows, the cards appear as eight two-channel devices, and FreeSWITCH can use them. On CentOS, the cards appear as two eight-channel devices (actually 10 out/12 in) and I&#39;m unable to configure more than two channels per card.</div>

<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Looking at the code, it looks like pablio.h&#39;s MAX_IO_CHANNELS is hardcoded to 2, and this is the limit of mod_portaudio. As it&#39;s a ring-buffer, I can see why it might need to be a power of 2, but does anyone know why it is set to 2?</div>

<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">How dangerous would it be to increase this value? Any thoughts?</div><div style="font-family:arial,sans-serif;font-size:13px">

<br></div><div style="font-family:arial,sans-serif;font-size:13px">Regards,</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Erik</div></div>

</blockquote></div><br></div>