[Speex-dev] Size in samples of a Speex packet
    Chris Flerackers 
    cflerackers at androme.be
       
    Sat Jul  7 08:35:29 PDT 2007
    
    
  
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?
-- 
Best regards,
Chris
    
    
More information about the Speex-dev
mailing list