diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-02-05 19:26:49 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-02-05 19:26:49 +0000 |
commit | 0c1a35f2f940ae7d1dbb2b198fd933c94cbaae4b (patch) | |
tree | b8c0bc170731fe5c5311e0a4cad802d6bf6ec20e /include/asterisk/frame.h | |
parent | 4c19328ff6ea16ea45068961c50287dc0258834e (diff) |
Version 0.3.0 from FTP
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@603 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk/frame.h')
-rwxr-xr-x | include/asterisk/frame.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/include/asterisk/frame.h b/include/asterisk/frame.h index f5e1479b6..1916a714b 100755 --- a/include/asterisk/frame.h +++ b/include/asterisk/frame.h @@ -33,8 +33,8 @@ struct ast_frame { int subclass; /*! Length of data */ int datalen; - /*! Amount of time associated with this frame */ - int timelen; + /*! Number of 8khz samples in this frame */ + int samples; /*! Was the data malloc'd? i.e. should we free it when we discard the frame? */ int mallocd; /*! How far into "data" the data really starts */ @@ -165,6 +165,10 @@ struct ast_frame_chain { #define AST_CONTROL_WINK 10 /*! Set a low-level option */ #define AST_CONTROL_OPTION 11 +/*! Key Radio */ +#define AST_CONTROL_RADIO_KEY 12 +/*! Un-Key Radio */ +#define AST_CONTROL_RADIO_UNKEY 13 /* Option identifiers and flags */ #define AST_OPTION_FLAG_REQUEST 0 @@ -181,6 +185,9 @@ struct ast_frame_chain { /* Put a compatible channel into TDD (TTY for the hearing-impared) mode */ #define AST_OPTION_TDD 2 +/* Relax the parameters for DTMF reception (mainly for radio use) */ +#define AST_OPTION_RELAXDTMF 3 + struct ast_option_header { /* Always keep in network byte order */ #if __BYTE_ORDER == __BIG_ENDIAN @@ -280,6 +287,7 @@ struct ast_smoother; extern struct ast_smoother *ast_smoother_new(int bytes); extern void ast_smoother_free(struct ast_smoother *s); +extern void ast_smoother_reset(struct ast_smoother *s, int bytes); extern int ast_smoother_feed(struct ast_smoother *s, struct ast_frame *f); extern struct ast_frame *ast_smoother_read(struct ast_smoother *s); |