Go to the documentation of this file.
52 #if !defined(_SPANDSP_SIG_TONE_H_)
53 #define _SPANDSP_SIG_TONE_H_
94 #if defined(__cplusplus)
173 #if defined(__cplusplus)
@ SIG_TONE_2_PRESENT
Definition: sig_tone.h:74
Definition: private/sig_tone.h:157
int sig_tone_rx(sig_tone_rx_state_t *s, int16_t amp[], int len)
Process a block of received audio samples.
Definition: sig_tone.c:368
@ SIG_TONE_2600HZ
Definition: sig_tone.h:61
int sig_tone_tx(sig_tone_tx_state_t *s, int16_t amp[], int len)
Generate a block of signalling tone audio samples.
Definition: sig_tone.c:222
@ SIG_TONE_RX_FILTER_TONE
Definition: sig_tone.h:83
tone_report_func_t sig_update
The callback function used to handle signalling changes.
Definition: private/sig_tone.h:159
int sig_tone_tx_release(sig_tone_tx_state_t *s)
Release a signalling tone transmitter context.
Definition: sig_tone.c:352
sig_tone_rx_state_t * sig_tone_rx_init(sig_tone_rx_state_t *s, int tone_type, tone_report_func_t sig_update, void *user_data)
Initialise a signalling tone context.
Definition: sig_tone.c:632
@ SIG_TONE_TX_UPDATE_REQUEST
Definition: sig_tone.h:85
@ SIG_TONE_2400HZ_2600HZ
Definition: sig_tone.h:63
int sig_tone_rx_free(sig_tone_rx_state_t *s)
Free a signalling tone receiver context.
Definition: sig_tone.c:686
@ SIG_TONE_RX_UPDATE_REQUEST
Definition: sig_tone.h:87
void * user_data
A user specified opaque pointer passed to the callback function.
Definition: private/sig_tone.h:161
void sig_tone_tx_set_mode(sig_tone_tx_state_t *s, int mode, int duration)
Set the tone mode.
Definition: sig_tone.c:299
@ SIG_TONE_2280HZ
Definition: sig_tone.h:59
@ SIG_TONE_2_CHANGE
Definition: sig_tone.h:76
@ SIG_TONE_TX_PASSTHROUGH
Definition: sig_tone.h:78
int sig_tone_rx_release(sig_tone_rx_state_t *s)
Release a signalling tone receiver context.
Definition: sig_tone.c:680
@ SIG_TONE_1_PRESENT
Definition: sig_tone.h:70
@ SIG_TONE_RX_PASSTHROUGH
Definition: sig_tone.h:80
@ SIG_TONE_1_CHANGE
Definition: sig_tone.h:72
Definition: private/sig_tone.h:126
sig_tone_tx_state_t * sig_tone_tx_init(sig_tone_tx_state_t *s, int tone_type, tone_report_func_t sig_update, void *user_data)
Initialise a signalling tone context.
Definition: sig_tone.c:319
int sig_tone_tx_free(sig_tone_tx_state_t *s)
Free a signalling tone transmitter context.
Definition: sig_tone.c:358
void sig_tone_rx_set_mode(sig_tone_rx_state_t *s, int mode, int duration)
Set the receive mode.
Definition: sig_tone.c:626