[Speex-dev] 2 questions, frame size and SPEEX_GET_LOOKAHEAD

Jia Pu jpu at apple.com
Tue Oct 31 10:32:41 PST 2006


>
>> 2. What does SPEEX_GET_LOOKAHEAD do? How to use it?
>> In speexenc.c, there is following code:
>>
>> ...
>> speex_encoder_ctl(st, SPEEX_GET_LOOKAHEAD, &lookahead);
>> ...
>> nb_encoded = -lookahead;
>>
>> Can someone explain what this means?
>
> The lookahead is the number of samples you need to discard at the  
> start.
>
> 	Jean-Marc

In my application, even 5ms (110 samples at 22KHz) matters. So what  
should I do to avoid discarding samples at the beginning?
1. Turning off look ahead?
2. Padding 0's at the beginning.


More information about the Speex-dev mailing list