25 #ifndef _ASTERISK_SMOOTHER_H 26 #define _ASTERISK_SMOOTHER_H 28 #if defined(__cplusplus) || defined(c_plusplus) 34 #define AST_SMOOTHER_FLAG_G729 (1 << 0) 35 #define AST_SMOOTHER_FLAG_BE (1 << 1) 36 #define AST_SMOOTHER_FLAG_FORCED (1 << 2) 76 #define ast_smoother_feed(s,f) __ast_smoother_feed(s, f, 0) 77 #if __BYTE_ORDER == __LITTLE_ENDIAN 78 #define ast_smoother_feed_be(s,f) __ast_smoother_feed(s, f, 1) 79 #define ast_smoother_feed_le(s,f) __ast_smoother_feed(s, f, 0) 81 #define ast_smoother_feed_be(s,f) __ast_smoother_feed(s, f, 0) 82 #define ast_smoother_feed_le(s,f) __ast_smoother_feed(s, f, 1) 86 #if defined(__cplusplus) || defined(c_plusplus) struct ast_smoother * ast_smoother_new(int bytes)
void ast_smoother_reconfigure(struct ast_smoother *s, int bytes)
Reconfigure an existing smoother to output a different number of bytes per frame. ...
int ast_smoother_get_flags(struct ast_smoother *smoother)
void ast_smoother_free(struct ast_smoother *s)
Asterisk architecture endianess compatibility definitions.
void ast_smoother_reset(struct ast_smoother *s, int bytes)
int ast_smoother_test_flag(struct ast_smoother *s, int flag)
void ast_smoother_set_flags(struct ast_smoother *smoother, int flags)
struct ast_frame * ast_smoother_read(struct ast_smoother *s)
Data structure associated with a single frame of data.
int __ast_smoother_feed(struct ast_smoother *s, struct ast_frame *f, int swap)