[Speex-dev] number of samples in input_frame

Thomas Leigh
2007-06-26T08:18:55Z

Hi all



Sorry if this is a dumb question: does the input_frame passed to
speex_encode_int *have* to be frame_size samples long?



e.g., If I only have 100 samples left to encode (which is less than the
frame_size of 160 samples), can I just use an array that contains 100
samples, or do I need to create an array containing the 100 "real"
samples plus 60 null samples at the end?



Let me put it one more way for clarity: is the response to
SPEEX_GET_FRAME_SIZE a maximum, can I use shorter frames if I want?





-Thom



-------------- next part --------------
An HTML attachment was scrubbed...