[asterisk-dev] How to create a slinear silent frame? SOLVED

Russell Bryant russell at digium.com
Tue May 19 10:02:09 CDT 2009


On May 19, 2009, at 9:26 AM, Olle E. Johansson wrote:

>
> 19 maj 2009 kl. 16.12 skrev Kevin P. Fleming:
>
>> Holger Wirtz wrote:
>>
>>> thnaks a lot! I an offset necessary if I create slinear packets and
>>> convert them to the channel drivers codec (let's say speex)?
>>> becuase the
>>> data for the frame has to be calculated from scratch the translator
>>> will
>>> be doing everything right with the offset?
>>
>> It's always best to supply at least AST_FRIENDLY_OFFSET bytes of  
>> space
>> anyway, in case the consumer of your frames is not who you expect it
>> to
>> be :-) It is also possible that a translator could modify the data in
>> place on an existing frame (although I don't think any of our  
>> existing
>> translators do that, it's within the rules as best I can remember),  
>> so
>> you can't even be sure that if a translation path is in place that it
>> will be creating new frames from yours.
>
> This needs to be added to doxygen... Hint, hint ;-)


Feel free to add it!  ... hint, hint ;-)

--
Russell Bryant
Digium, Inc. | Senior Software Engineer, Open Source Team Lead
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at: www.digium.com & www.asterisk.org







More information about the asterisk-dev mailing list