<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
Sorry, message format got messed up. Here is the message again:<br><br><div><div>Hi,</div><div>I'm having performance issues encoding with speex on iphone4 + iOS5. The same code yields excellent results on iPad2 + iOS5, Mac OS X 10.6 as well as Windows 7. The call to speex_encode_int is takes ~0.0065 to complete. Because encoding is so latent the receiver incurs underruns.</div><div><br></div><div>Here is my speex setup:</div><div><br></div><div>unsigned val = 0;</div><div>encoder_state_ = speex_encoder_init(speex_lib_get_mode(SPEEX_MODEID_NB));</div><div>val = 7;</div><div>speex_encoder_ctl(encoder_state_, SPEEX_SET_QUALITY, &amp;val);</div><div>&nbsp;val = 0;</div><div>speex_encoder_ctl(encoder_state_, SPEEX_SET_COMPLEXITY, &amp;val);</div><div>val = 8000;</div><div>speex_encoder_ctl(encoder_state_, SPEEX_SET_BITRATE, &amp;val);</div><div>val = 0;</div><div>speex_encoder_ctl(encoder_state_, SPEEX_SET_VAD, &amp;val);</div><div>val = 0;</div><div>speex_encoder_ctl(encoder_state_, SPEEX_SET_DTX, &amp;val);</div><div>val = 0;</div><div>speex_encoder_ctl(encoder_state_, SPEEX_SET_VBR, &amp;val);</div><div><br></div><div>Here is the time elapsed on iphone4:</div><div>Encoding took 0.006500 seconds.</div><div>Encoding took 0.004000 seconds.</div><div><br></div><div>And on Mac OS X:</div><div>Encoding took 0.000805 seconds.</div><div>Encoding took 0.000792 seconds.</div><div><br></div><div>Thanks in advance!&nbsp;</div></div>                                               </div></body>
</html>