24 #ifndef _ASTERISK_SLINFACTORY_H 25 #define _ASTERISK_SLINFACTORY_H 29 #if defined(__cplusplus) || defined(c_plusplus) 33 #define AST_SLINFACTORY_MAX_HOLD 1280 117 #if defined(__cplusplus) || defined(c_plusplus)
void ast_slinfactory_flush(struct ast_slinfactory *sf)
Flush the contents of a slinfactory.
short hold[AST_SLINFACTORY_MAX_HOLD]
int ast_slinfactory_feed(struct ast_slinfactory *sf, struct ast_frame *f)
Feed audio into a slinfactory.
struct ast_trans_pvt * trans
struct ast_format * format
unsigned int ast_slinfactory_available(const struct ast_slinfactory *sf)
Retrieve number of samples currently in a slinfactory.
AST_LIST_HEAD_NOLOCK(, ast_frame) queue
void ast_slinfactory_destroy(struct ast_slinfactory *sf)
Destroy the contents of a slinfactory.
int ast_slinfactory_init_with_format(struct ast_slinfactory *sf, struct ast_format *slin_out)
Initialize a slinfactory.
Default structure for translators, with the basic fields and buffers, all allocated as part of the sa...
void ast_slinfactory_init(struct ast_slinfactory *sf)
Initialize a slinfactory.
#define AST_SLINFACTORY_MAX_HOLD
Data structure associated with a single frame of data.
int ast_slinfactory_read(struct ast_slinfactory *sf, short *buf, size_t samples)
Read samples from a slinfactory.
struct ast_format * output_format