24 #ifndef _ASTERISK_SLINFACTORY_H
25 #define _ASTERISK_SLINFACTORY_H
27 #if defined(__cplusplus) || defined(c_plusplus)
31 #define AST_SLINFACTORY_MAX_HOLD 1280
115 #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
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_rate(struct ast_slinfactory *sf, unsigned int sample_rate)
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.