Prosody FMP processing: API: sm_fmprx_get_datafeed

Prototype Definition

int sm_fmprx_get_datafeed(struct sm_fmprx_datafeed_parms *datafeedp)

Parameters

*datafeedp
a structure of the following type:
typedef struct sm_fmprx_datafeed_parms {
	tSMFMPrxId fmprx;					/* in */
	tSMDatafeedId datafeed;					/* out */
} SM_FMPRX_DATAFEED_PARMS;

Description

Request a datafeed identifier from a FMP[rx]. This identifer can subsequently be used in a call to sm_channel_datafeed_connect() or sm_fmptx_datafeed_connect() to connect a FMP[rx] to a speech channel (tSMChannelId) or a FMP[tx] respectively. Datafeed connections can only be made between objects allocated on the same tSMModuleId.

Requires the modules datafeed fmprx to have been downloaded.

Fields

fmprx
The fmp[rx] from which to obtain a datafeed
datafeed
The datafeed object associated with the FMP[rx]

Returns

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


This function is part of the Prosody FMP processing API.