int sm_path_tonedetect(struct sm_path_tonedetect_parms *tdparms)
typedef struct sm_path_tonedetect_parms {
tSMPathId path; /* in */
tSM_INT elim; /* in */
enum kSMPathToneDetectMode {
kSMPathToneDetectModeNone,
kSMPathToneDetectModeMinDurationNoMinimum,
kSMPathToneDetectModeMinDuration40,
kSMPathToneDetectModeMinDuration64,
} min_duration; /* in */
tSM_INT tone_set_id; /* in */
} SM_PATH_TONEDETECT_PARMS;
Configures a tone detector on signal path. Detected tones are reported through sm_path_status(). Tones that are detected may optionally be eliminated. When eliminating tones, the signal is delayed by small amount so entire tone can be eliminated.
Requires the module td to be loaded.
0 if call completed successfully, otherwise a standard error.
This function is part of the Prosody signal path processing API.