Prosody signal path processing: API: sm_path_get_datafeed

Prototype Definition

int sm_path_get_datafeed(struct sm_path_datafeed_parms *datafeedp)

Parameters

*datafeedp
a structure of the following type:
typedef struct sm_path_datafeed_parms {
	tSMPathId path;						/* in */
	tSMDatafeedId datafeed;					/* out */
} SM_PATH_DATAFEED_PARMS;

Description

Request a datafeed identifier from a signal path. This identifer can subsequently be used in a call to sm_channel_datafeed_connect(), sm_tdmtx_datafeed_connect() or sm_vmptx_datafeed_connect() to connect the result of the signal path procesing to a speech channel (tSMChannelId), TDM[tx], or a VMP[tx] respectively. It is valid until the path is destroyed. Datafeed connections can only be made between objects allocated on the same tSMModuleId.

Requires the module datafeed to have been downloaded.

Fields

path
The signal path from which to obtain a datafeed
datafeed
The datafeed object representing the processed signal from the signal path

Returns

0 if call completed successfully, otherwise a standard error such as:


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