[Speex-dev] number of samples in input_frame
Thomas Leigh
thomas.leigh at oak.co.uk
Tue Jun 26 08:18:22 PDT 2007
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...
URL: http://lists.xiph.org/pipermail/speex-dev/attachments/20070626/b52a1448/attachment.htm
More information about the Speex-dev
mailing list