[Speex-dev] Size in samples of a Speex packet

Steve Kann stevek at stevek.com
Sat Jul 7 16:19:26 PDT 2007


Chris Flerackers wrote:
> Hi,
>
> Is there an easy way to get the size in samples of a Speex packet, 
> without decoding the packet?
>
> If I receive a "narrowband packet" with
> - Zero or more wideband frames (must be skipped apparently)
> - Zero or more Speex inband requests
> - Zero or more user inband requests
> - One or more narrowband frames
> I need to know how much samples the packet contains to calculate 
> jitter buffer values (e.g. how much samples are available in the 
> jitter buffer).
>
> I cannot decode the packet prematurely, because packets may need to be 
> reordered first.
>
> How is this (multiple frames in one packet) handled by the Speex 
> jitter buffer?
>
See http://lists.xiph.org/pipermail/speex-dev/2007-March/005428.html

-SteveK



More information about the Speex-dev mailing list