26#if !defined(_SPANDSP_SUPER_TONE_RX_H_)
27#define _SPANDSP_SUPER_TONE_RX_H_
56typedef void (*tone_report_func_t)(
void *user_data,
int code,
int level,
int delay);
58typedef void (*tone_segment_func_t)(
void *data,
int f1,
int f2,
int duration);
66#if defined(__cplusplus)
76SPAN_DECLARE(super_tone_rx_descriptor_t *) super_tone_rx_make_descriptor(super_tone_rx_descriptor_t *desc);
82SPAN_DECLARE(
int) super_tone_rx_free_descriptor(super_tone_rx_descriptor_t *desc);
87SPAN_DECLARE(
int) super_tone_rx_add_tone(super_tone_rx_descriptor_t *desc);
98SPAN_DECLARE(
int) super_tone_rx_add_element(super_tone_rx_descriptor_t *desc,
113SPAN_DECLARE(super_tone_rx_state_t *) super_tone_rx_init(super_tone_rx_state_t *s,
114 super_tone_rx_descriptor_t *desc,
115 tone_report_func_t callback,
122SPAN_DECLARE(
int) super_tone_rx_release(super_tone_rx_state_t *s);
128SPAN_DECLARE(
int) super_tone_rx_free(super_tone_rx_state_t *s);
137SPAN_DECLARE(
void) super_tone_rx_tone_callback(super_tone_rx_state_t *s,
138 tone_report_func_t callback,
146SPAN_DECLARE(
void) super_tone_rx_segment_callback(super_tone_rx_state_t *s,
147 tone_segment_func_t callback);
156SPAN_DECLARE(
int) super_tone_rx(super_tone_rx_state_t *super,
const int16_t amp[],
int samples);
164SPAN_DECLARE(
int) super_tone_rx_fillin(super_tone_rx_state_t *s,
int samples);
166#if defined(__cplusplus)
Definition private/super_tone_rx.h:41
Definition private/super_tone_rx.h:32
Definition private/super_tone_rx.h:52