mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 20:20:07 +00:00
rename FR_SET_BUF to AST_FRAME_SET_BUFFER
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18639 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -111,7 +111,15 @@ struct ast_frame {
|
||||
struct ast_frame *next;
|
||||
};
|
||||
|
||||
#define FR_SET_BUF(fr, _base, _ofs, _datalen) \
|
||||
/*!
|
||||
* Set the various field of a frame to point to a buffer.
|
||||
* Typically you set the base address of the buffer, the offset as
|
||||
* AST_FRIENDLY_OFFSET, and the datalen as the amount of bytes queued.
|
||||
* The remaining things (to be done manually) is set the number of
|
||||
* samples, which cannot be derived from the datalen unless you know
|
||||
* the number of bits per sample.
|
||||
*/
|
||||
#define AST_FRAME_SET_BUFFER(fr, _base, _ofs, _datalen) \
|
||||
{ \
|
||||
(fr)->data = (char *)_base + (_ofs); \
|
||||
(fr)->offset = (_ofs); \
|
||||
|
Reference in New Issue
Block a user