<div dir="ltr">I think it will looks like:<br>void Encode(const char* infile, const char* outFile)<br>{<br> void* st;<br> SpeexBits bits;<br> .....<br> st = speex_encoder_init(mode);<br> .....<br> speex_encode_int(st, input, &bits);<br>
.....<br> speex_bits_destroy(&bits);<br> speex_encoder_destroy(st);<br>}<br><br><div class="gmail_quote">2011/12/7 Steve Checkoway <span dir="ltr"><<a href="mailto:s@pahtak.org">s@pahtak.org</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im"><br>
On Dec 7, <a href="tel:2011" value="+9722011" target="_blank">2011</a>, at 0:00 , Denis Romashenko wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I'll try to explain. I want to create dll with only one function "Encode"<br>
that will encode file to speex format. In my application I will use this<br>
function from 16 threads, if it will work correct?<br>
</blockquote>
<br>
<br></div>
Surely that depends on the implementation of your Encode function. If you use different encoder state for each file you're encoding, it will work fine.<br><font color="#888888">
<br>
-- <br>
Steve Checkoway<br>
<br>
<br>
<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Regards<br><br><a href="mailto:denis.romashenko@retell.co.uk">denis.romashenko@retell.co.uk</a><br>DDI (UK) +44(0)1932 773846<br>DDI (Il) +972(0)722451373<br>Mobile (Il) +972(0)545549366<br>
Switchboard (UK) +44(0)1932 779755<br>Fax (UK) +44(0)1932 780383<br>Visit us at <a href="http://www.retellrecorders.co.uk">www.retellrecorders.co.uk</a> <br>Retell Ltd, 53 Thames Street, Sunbury on Thames, Middlesex, TW16 5QH England. Company VAT No. GB819112250<br>
<br>Registered in England & Wales no. 4871004 Reg Office: Heathrow Business Centre, 65 High Street, Egham, Surrey TW20 9EY <br>READ OUR TERMS AND CONDITIONS FOR OUR GOODS AND SERVICES available at <a href="http://www.retellrecorders.co.uk/buy/terms.htm">www.retellrecorders.co.uk/buy/terms.htm</a> before purchase.<br>
Please contact us if you do not wish to receive information about Retell's extensive range of call recording equipment.<br><br>THIS TRANSMISSION IS INTENDED ONLY FOR THE USE OF THE INDIVIDUAL OR ENTITY TO WHICH IT IS ADDRESSED AND MAY CONTAIN INFORMATION THAT IS PRIVILEGED, CONFIDENTIAL AND EXEMPT FROM DISCLOSURE UNDER APPLICABLE LAW. All correspondence and agreement subject to contract. If you are not the intended recipient or employee or agent responsible for delivering the transmission to the intended recipient, please notify us by return. Any distribution or copying of this document by anyone other than the intended recipient is strictly prohibited. Retell cannot be held responsible for any alterations made to this document, intentionally or otherwise after transmission. We check all our mail and attachments for viruses using an up to date virus checker, but we cannot guarantee that they are virus free.<br>
<br>
</div>