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)
115 tone_report_func_t callback,
138 tone_report_func_t callback,
147 tone_segment_func_t callback);
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
void super_tone_rx_tone_callback(super_tone_rx_state_t *s, tone_report_func_t callback, void *user_data)
Definition: super_tone_rx.c:241
super_tone_rx_descriptor_t * super_tone_rx_make_descriptor(super_tone_rx_descriptor_t *desc)
Definition: super_tone_rx.c:200
int super_tone_rx(super_tone_rx_state_t *s, const int16_t amp[], int samples)
Apply supervisory tone detection processing to a block of audio samples.
Definition: super_tone_rx.c:447
super_tone_rx_state_t * super_tone_rx_init(super_tone_rx_state_t *s, super_tone_rx_descriptor_t *desc, tone_report_func_t callback, void *user_data)
Definition: super_tone_rx.c:257
int super_tone_rx_add_element(super_tone_rx_descriptor_t *desc, int tone, int f1, int f2, int min, int max)
Definition: super_tone_rx.c:121
int super_tone_rx_free(super_tone_rx_state_t *s)
Definition: super_tone_rx.c:303
int super_tone_rx_add_tone(super_tone_rx_descriptor_t *desc)
Definition: super_tone_rx.c:107
void super_tone_rx_segment_callback(super_tone_rx_state_t *s, tone_segment_func_t callback)
Definition: super_tone_rx.c:250
int super_tone_rx_release(super_tone_rx_state_t *s)
Definition: super_tone_rx.c:297
int super_tone_rx_fillin(super_tone_rx_state_t *s, int samples)
Allow for a missing block of samples to a supervisory tone detector.
Definition: super_tone_rx.c:487
int super_tone_rx_free_descriptor(super_tone_rx_descriptor_t *desc)
Definition: super_tone_rx.c:218