Prosody signal path processing: API: sm_path_delay

Prototype Definition

int sm_path_delay(struct sm_path_delay_parms *delayparms)

Parameters

*delayparms
a structure of the following type:
typedef struct sm_path_delay_parms {
	tSMPathId path;						/* in */
	tSM_INT enable;						/* in */
	tSM_INT delay;						/* in */
} SM_PATH_DELAY_PARMS;

Description

Delays signal by specified number of samples. If signal path already has a delay configured, the delay is changed to new value. A new or increased delay has gap filled with silence.

Requires the module delay to be loaded.

Fields

path
The signal path to be configured
enable
Enables (non-zero) or disables (zero) delay.
delay
Delay value measured in samples.

Returns

0 if call completed successfully, otherwise a standard error.


This function is part of the Prosody signal path processing API.