<div>
                    Thanks for explaining and sorry to bring you new questions, hope this is the last for this topic:
                </div><div><br></div><div>On&nbsp;<a href="http://fisheye.freeswitch.org/changelog/freeswitch.git?cs=bdd391e5db830e97eb06a7cea5b1059204e5fcac">http://fisheye.freeswitch.org/changelog/freeswitch.git?cs=bdd391e5db830e97eb06a7cea5b1059204e5fcac</a>&nbsp;between lines 697-700 I tried to mux the channels but volume is very very low, or I didn't do right. Any highlights?</div><div><br></div><div>Line 703 has good sound but only has one channel.</div><div><br></div><div><br></div><div>Question 2:</div><div><br></div><div>fav should now support any rate 8000/16000 etc, but the ptime around line 571 is still hard coded. Is it possible to get this from the file handle?&nbsp;</div><div><br></div><div><div><span class="Apple-tab-span" style="white-space:pre">                </span>h.audio_ptime = 20; /* FIXME: hard coded */</div></div><div><br></div><div>Thanks.</div><div><br></div>
                 
                <p style="color: #A0A0A8;">On Saturday, September 1, 2012 at 1:28 AM, Anthony Minessale wrote:</p>
                <blockquote type="cite" style="border-left-style:solid;border-width:1px;margin-left:0px;padding-left:10px;">
                    <span><div><div><div>when you have multiple channels it still only uses the len of one</div><div>channel assuming you will multiply that len by the * of channels for</div><div>the real size.</div><div><br></div><div><br></div><div>On Thu, Aug 30, 2012 at 10:15 PM, Seven Du &lt;<a href="mailto:dujinfang@gmail.com">dujinfang@gmail.com</a>&gt; wrote:</div><blockquote type="cite"><div><div>ok, I figured out when use conference record, handle-&gt;channels = 1, but in</div><div>uuid_record, handle-&gt;channels = 2, so the following code did the trick in</div><div>fsv_file_write, but I'm not sure if it's the write approach. Why the *len is</div><div>always 160 in both cases? where the other half channel data goes to? I use</div><div>play_fsv so the playback should be right. Only tested on 8000HZ right now.</div><div>If the following code is confusing I can submit a full patch. Thanks.</div><div><br></div><div><br></div><div><br></div><div>uint16_t *x = data;</div><div><br></div><div><br></div><div>if (handle-&gt;channels == 2) {</div><div>/* should we use only one channel ? */</div><div>for (int i=0; i&lt;160; i++) {</div><div>x[i] = x[i*2];</div><div>}</div><div>}</div><div><br></div><div><br></div><div>--</div><div>Seven Du</div><div>Sent with Sparrow</div><div><br></div><div>On Friday, August 31, 2012 at 8:34 AM, Anthony Minessale wrote:</div><div><br></div><div>Right now it always does raw l16 in any of the io or file funcs</div><div><br></div><div>On Aug 30, 2012 7:23 PM, "dujinfang" &lt;<a href="mailto:dujinfang@gmail.com">dujinfang@gmail.com</a>&gt; wrote:</div><div><br></div><div>yes, my problem is how to make sure switch_file</div><div>_write always get L16 data when trigger by uuid_record?</div><div><br></div><div>thanks</div><div><br></div><div>发自我的 iPhone</div><div><br></div><div>在 2012-8-31,上午4:36,Anthony Minessale &lt;<a href="mailto:anthony.minessale@gmail.com">anthony.minessale@gmail.com</a>&gt; 写道:</div><div><br></div><blockquote type="cite"><div><div>yes, currently the fsv format expects L16 audio</div><div><br></div><div>On Thu, Aug 30, 2012 at 4:00 AM, Seven Du &lt;<a href="mailto:dujinfang@gmail.com">dujinfang@gmail.com</a>&gt; wrote:</div><blockquote type="cite"><div><div>Hi,</div><div><br></div><div>If you noticed the video-media-bug branch, I managed to record a video</div><div>file</div><div>with the following methods</div><div><br></div><div>conference 3000 record /tmp/testrecord.fsv</div><div><br></div><div>uuid_record &lt;uuid&gt; start /tmp/testrecord.fsv</div><div><br></div><div><br></div><div>The first command works perfect as conference voice is L16, but the last</div><div>one</div><div>has bad audio I guess because it's PCMU ?.</div><div><br></div><div>I noticed a SWITCH_FILE_NATIVE flags which is supposed to disable</div><div>transcoding but in my case in mod_fsv the flag is not set so should it</div><div>transcode to L16 before writing to the fsv file?</div><div><br></div><div>Thanks.</div><div><br></div><div>--</div><div>Seven Du</div><div>Sent with Sparrow</div><div><br></div><div><br></div><div>_________________________________________________________________________</div><div>Professional FreeSWITCH Consulting Services:</div><div><a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a></div><div><a href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a></div><div><br></div><div>FreeSWITCH-powered IP PBX: The CudaTel Communication Server</div><div><a href="http://www.cudatel.com">http://www.cudatel.com</a></div><div><br></div><div>Official FreeSWITCH Sites</div><div><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></div><div><a href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a></div><div><a href="http://www.cluecon.com">http://www.cluecon.com</a></div><div><br></div><div>FreeSWITCH-dev mailing list</div><div><a href="mailto:FreeSWITCH-dev@lists.freeswitch.org">FreeSWITCH-dev@lists.freeswitch.org</a></div><div><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a></div><div>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a></div><div><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></div></div></blockquote><div><br></div><div><br></div><div><br></div><div>--</div><div>Anthony Minessale II</div><div><br></div><div>FreeSWITCH <a href="http://www.freeswitch.org">http://www.freeswitch.org</a>/</div><div>ClueCon <a href="http://www.cluecon.com">http://www.cluecon.com</a>/</div><div>Twitter: <a href="http://twitter.com/FreeSWITCH_wire">http://twitter.com/FreeSWITCH_wire</a></div><div><br></div><div>AIM: anthm</div><div>MSN:<a href="mailto:anthony_minessale@hotmail.com">anthony_minessale@hotmail.com</a></div><div>GTALK/JABBER/PAYPAL:<a href="mailto:anthony.minessale@gmail.com">anthony.minessale@gmail.com</a></div><div>IRC: <a href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch</div><div><br></div><div>FreeSWITCH Developer Conference</div><div>sip:<a href="mailto:888@conference.freeswitch.org">888@conference.freeswitch.org</a></div><div>googletalk:<a href="mailto:conf+888@conference.freeswitch.org">conf+888@conference.freeswitch.org</a></div><div>pstn:+19193869900</div><div><br></div><div>_________________________________________________________________________</div><div>Professional FreeSWITCH Consulting Services:</div><div><a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a></div><div><a href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a></div><div><br></div><div>FreeSWITCH-powered IP PBX: The CudaTel Communication Server</div><div><a href="http://www.cudatel.com">http://www.cudatel.com</a></div><div><br></div><div>Official FreeSWITCH Sites</div><div><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></div><div><a href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a></div><div><a href="http://www.cluecon.com">http://www.cluecon.com</a></div><div><br></div><div>FreeSWITCH-dev mailing list</div><div><a href="mailto:FreeSWITCH-dev@lists.freeswitch.org">FreeSWITCH-dev@lists.freeswitch.org</a></div><div><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a></div><div>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a></div><div><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></div></div></blockquote><div><br></div><div>_________________________________________________________________________</div><div>Professional FreeSWITCH Consulting Services:</div><div><a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a></div><div><a href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a></div><div><br></div><div>FreeSWITCH-powered IP PBX: The CudaTel Communication Server</div><div><a href="http://www.cudatel.com">http://www.cudatel.com</a></div><div><br></div><div>Official FreeSWITCH Sites</div><div><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></div><div><a href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a></div><div><a href="http://www.cluecon.com">http://www.cluecon.com</a></div><div><br></div><div>FreeSWITCH-dev mailing list</div><div><a href="mailto:FreeSWITCH-dev@lists.freeswitch.org">FreeSWITCH-dev@lists.freeswitch.org</a></div><div><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a></div><div>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a></div><div><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></div><div><br></div><div>_________________________________________________________________________</div><div>Professional FreeSWITCH Consulting Services:</div><div><a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a></div><div><a href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a></div><div><br></div><div>FreeSWITCH-powered IP PBX: The CudaTel Communication Server</div><div><a href="http://www.cudatel.com">http://www.cudatel.com</a></div><div><br></div><div>Official FreeSWITCH Sites</div><div><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></div><div><a href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a></div><div><a href="http://www.cluecon.com">http://www.cluecon.com</a></div><div><br></div><div>FreeSWITCH-dev mailing list</div><div><a href="mailto:FreeSWITCH-dev@lists.freeswitch.org">FreeSWITCH-dev@lists.freeswitch.org</a></div><div><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a></div><div>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a></div><div><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></div><div><br></div><div><br></div><div><br></div><div>_________________________________________________________________________</div><div>Professional FreeSWITCH Consulting Services:</div><div><a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a></div><div><a href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a></div><div><br></div><div>FreeSWITCH-powered IP PBX: The CudaTel Communication Server</div><div><a href="http://www.cudatel.com">http://www.cudatel.com</a></div><div><br></div><div>Official FreeSWITCH Sites</div><div><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></div><div><a href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a></div><div><a href="http://www.cluecon.com">http://www.cluecon.com</a></div><div><br></div><div>FreeSWITCH-dev mailing list</div><div><a href="mailto:FreeSWITCH-dev@lists.freeswitch.org">FreeSWITCH-dev@lists.freeswitch.org</a></div><div><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a></div><div>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a></div><div><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></div></div></blockquote><div><br></div><div><br></div><div><br></div><div>-- </div><div>Anthony Minessale II</div><div><br></div><div>FreeSWITCH <a href="http://www.freeswitch.org">http://www.freeswitch.org</a>/</div><div>ClueCon <a href="http://www.cluecon.com">http://www.cluecon.com</a>/</div><div>Twitter: <a href="http://twitter.com/FreeSWITCH_wire">http://twitter.com/FreeSWITCH_wire</a></div><div><br></div><div>AIM: anthm</div><div>MSN:<a href="mailto:anthony_minessale@hotmail.com">anthony_minessale@hotmail.com</a></div><div>GTALK/JABBER/PAYPAL:<a href="mailto:anthony.minessale@gmail.com">anthony.minessale@gmail.com</a></div><div>IRC: <a href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch</div><div><br></div><div>FreeSWITCH Developer Conference</div><div>sip:<a href="mailto:888@conference.freeswitch.org">888@conference.freeswitch.org</a></div><div>googletalk:<a href="mailto:conf+888@conference.freeswitch.org">conf+888@conference.freeswitch.org</a></div><div>pstn:+19193869900</div><div><br></div><div>_________________________________________________________________________</div><div>Professional FreeSWITCH Consulting Services:</div><div><a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a></div><div><a href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a></div><div><br></div><div>FreeSWITCH-powered IP PBX: The CudaTel Communication Server</div><div><a href="http://www.cudatel.com">http://www.cudatel.com</a></div><div><br></div><div>Official FreeSWITCH Sites</div><div><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></div><div><a href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a></div><div><a href="http://www.cluecon.com">http://www.cluecon.com</a></div><div><br></div><div>FreeSWITCH-dev mailing list</div><div><a href="mailto:FreeSWITCH-dev@lists.freeswitch.org">FreeSWITCH-dev@lists.freeswitch.org</a></div><div><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a></div><div>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a></div><div><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></div></div></div></span>
                 
                 
                 
                 
                </blockquote>
                 
                <div>
                    <br>
                </div>