[Live-devel] Buffer underrrun PCM->uLaw

Ross Finlayson finlayson at live555.com
Mon May 6 18:08:43 PDT 2013


I suspect that the problem is that you are not (in your "FramedSource" subclass) setting "fDurationInMicroseconds" before delivering each chunk of PCM data (to your downstream "uLawFromPCMAudioSource" filter).  Before completing the delivery (i.e., before calling "FramedSource::afterGetting()"), you should set "fDurationInMicroseconds" based on the number of samples in the chunk of data, and the sampling frequency.

(If you don't set "fDurationInMicroseconds", then it will get set to the default value of 0, which will cause the downstream "RTPSink" object to request new data immediately after sending each RTP packet.  Because you're streaming from a buffer, that's probably not what you want.)


Ross Finlayson
Live Networks, Inc.
http://www.live555.com/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20130506/c378158d/attachment.html>


More information about the live-devel mailing list