ok, so 48510 Hz->44100 Hz is just a trick to force a resampler.<br><br>I checked the speex resampler module, and all samples are processed by speex, even if input_rate == output_rate, so we loose cpu for nothing.<br><br>
Patch attached.<br><br><div class="gmail_quote">2012/2/2 Måns Rullgård <span dir="ltr"><<a href="mailto:mans@mansr.com">mans@mansr.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">Rafaël Carré <<a href="mailto:funman@videolan.org">funman@videolan.org</a>> writes:<br>
<br>
> Le <a href="tel:2012-02-02%2011" value="+12012020211">2012-02-02 11</a>:47, Edward Wang a écrit :<br>
>> On 12-02-02 11:41 AM, Rafaël Carré wrote:<br>
>>> I have a few questions: - why is speex codec disabled by your patch?<br>
>>> we use speex for decoding speex, encoding speex (doesn't matter for<br>
>>> android atm), and resampling.<br>
>> I have no idea what the speex codec is, for that, I believe we are using<br>
>> avcodec anyway:<br>
>><br>
>> D/vlc     ( 6242): using decoder module "avcodec"<br>
><br>
> See <a href="http://www.speex.org/" target="_blank">http://www.speex.org/</a><br>
><br>
> If we want to replace it by avcodec then why not but is it faster?<br>
<br>
</div>libavcodec does not have a speex decoder (or encoder), only a wrapper<br>
for libspeex.  If you want to decode speex today, you will have to use<br>
libspeex one way or another.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Måns Rullgård<br>
<a href="mailto:mans@mansr.com">mans@mansr.com</a><br>
</font></span><div class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
vlc-devel mailing list<br>
To unsubscribe or modify your subscription options:<br>
<a href="http://mailman.videolan.org/listinfo/vlc-devel" target="_blank">http://mailman.videolan.org/listinfo/vlc-devel</a><br>
</div></div></blockquote></div><br>