Version 0.3.0 from FTP

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@603 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer
2003-02-05 19:26:49 +00:00
parent c78714436e
commit e403f86b4b
3 changed files with 186 additions and 19 deletions

View File

@@ -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);