36 #include "asterisk/mod_format.h"
39 #define G723_MAX_SIZE 1024
48 if (fread(&delay, 1, 4, s->
f) == 4)
52 if (fread(&size, 1, 2, s->
f) != 2) {
98 if ((res = fwrite(&delay, 1, 4, s->
f)) != 4) {
103 if ((res = fwrite(&size, 1, 2, s->
f)) != 2) {
124 if ((fd = fileno(fs->
f)) < 0) {
128 if ((cur = ftello(fs->
f)) < 0) {
133 return ftruncate(fd, cur);
143 .exts =
"g723|g723sf",
union ast_frame_subclass subclass
Asterisk main include file. File version handling, generic pbx functions.
#define AST_FORMAT_G723_1
#define AST_MODULE_INFO(keystr, flags_to_set, desc, fields...)
#define AST_FRAME_SET_BUFFER(fr, _base, _ofs, _datalen)
#define AST_FRIENDLY_OFFSET
Offset into a frame's data buffer.
void ast_log(int level, const char *file, int line, const char *function, const char *fmt,...)
Used for sending a log message This is the standard logger function. Probably the only way you will i...
This structure is allocated by file.c in one chunk, together with buf_size and desc_size bytes of mem...
Data structure associated with a single frame of data.
enum ast_frame_type frametype
#define ASTERISK_GPL_KEY
The text the key() function should return.
Asterisk module definitions.
union ast_frame::@172 data
#define ASTERISK_FILE_VERSION(file, version)
Register/unregister a source code file with the core.