Re: speex_encode_int performance iphone4 + iOS5
Luke Walker <[email protected]> Fri, 20 Jan 2012 00:16:43 +0000
| Newsgroups | gmane.comp.audio.compression.speex.devel |
|---|---|
| Message-ID | <[email protected]> |
Sorry, message format got messed up. Here is the message again: Hi,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. Here is my speex setup: unsigned val = 0;encoder_state_ = speex_encoder_init(speex_lib_get_mode(SPEEX_MODEID_NB));val = 7;speex_encoder_ctl(encoder_state_, SPEEX_SET_QUALITY, &val); val = 0;speex_encoder_ctl(encoder_state_, SPEEX_SET_COMPLEXITY, &val);val = 8000;speex_encoder_ctl(encoder_state_, SPEEX_SET_BITRATE, &val);val = 0;speex_encoder_ctl(encoder_state_, SPEEX_SET_VAD, &val);val = 0;speex_encoder_ctl(encoder_state_, SPEEX_SET_DTX, &val);val = 0;speex_encoder_ctl(encoder_state_, SPEEX_SET_VBR, &val); Here is the time elapsed on iphone4:Encoding took 0.006500 seconds.Encoding took 0.004000 seconds. And on Mac OS X:Encoding took 0.000805 seconds.Encoding took 0.000792 seconds. Thanks in advance! _______________________________________________ Speex-dev mailing list [email protected] http://lists.xiph.org/mailman/listinfo/speex-dev