28#if !defined(_SPANDSP_FAX_H_)
29#define _SPANDSP_FAX_H_
40#if defined(__cplusplus)
53SPAN_DECLARE(
int)
fax_rx(fax_state_t *s, int16_t *amp,
int len);
73SPAN_DECLARE(
int)
fax_tx(fax_state_t *s, int16_t *amp,
int max_len);
111SPAN_DECLARE(
int)
fax_restart(fax_state_t *s,
bool calling_party);
120SPAN_DECLARE(fax_state_t *)
fax_init(fax_state_t *s,
bool calling_party);
132SPAN_DECLARE(
int)
fax_free(fax_state_t *s);
134#if defined(__cplusplus)
int fax_rx_fillin(fax_state_t *s, int len)
Apply fake T.30 receive processing.
Definition fax.c:190
t30_state_t * fax_get_t30_state(fax_state_t *s)
Get a pointer to the T.30 engine associated with a FAX context.
Definition fax.c:436
void fax_set_transmit_on_idle(fax_state_t *s, int transmit_on_idle)
Select whether silent audio will be sent when FAX transmit is idle.
Definition fax.c:424
int fax_restart(fax_state_t *s, bool calling_party)
Restart a FAX context.
Definition fax.c:448
int fax_free(fax_state_t *s)
Free a FAX context.
Definition fax.c:574
int fax_rx(fax_state_t *s, int16_t *amp, int len)
Apply T.30 receive processing to a block of audio samples.
Definition fax.c:170
logging_state_t * fax_get_logging_state(fax_state_t *s)
Get a pointer to the logging context associated with a FAX context.
Definition fax.c:442
int fax_release(fax_state_t *s)
Release a FAX context.
Definition fax.c:566
void fax_set_tep_mode(fax_state_t *s, int use_tep)
Select whether TEP will be sent for the image modems.
Definition fax.c:430
int fax_tx(fax_state_t *s, int16_t *amp, int max_len)
Apply T.30 transmit processing to generate a block of audio samples.
Definition fax.c:221
fax_state_t * fax_init(fax_state_t *s, bool calling_party)
Initialise a FAX context.
Definition fax.c:509
struct logging_state_s logging_state_t
Definition logging.h:72
Definition private/fax.h:36