[Speex-dev] Determine number of 20ms frames in packet - without
decoding
Jean-Marc Valin
jean-marc.valin at usherbrooke.ca
Thu Feb 7 19:48:20 PST 2008
David Hogan wrote:
> Does anyone know a practical way to determine the number of 20ms speex
> frames in a given speex packet without actually looping on speex_decode* ?
There's no ready-made function for that. You'd have to write a function
that inspects the bits, determines what mode is involved, and jump the
right number of bits until a terminator is found or there's no more
bytes. The narrowband decoder already does something similar when it
encounters wideband data it doesn't want to decode.
Jean-Marc
More information about the Speex-dev
mailing list