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