int sm_vmptx_datafeed_connect(struct sm_vmptx_datafeed_connect_parms *datafeedp)
typedef struct sm_vmptx_datafeed_connect_parms { tSMDatafeedId data_source; /* in */ tSMVMPtxId vmptx; /* in */ } SM_VMPTX_DATAFEED_CONNECT_PARMS;
Connects a datafeed to a VMP[tx]. The
data_source
must be a datafeed obtained a call to any of the
*_get_datafeed()
functions.
The VMP[tx]
vmptx
will receive any data that is generated by the output task from which
data_source
was derived.
To disconnect a VMP[tx] from a datafeed, specify
kSMNullDatafeedId
as the tSMDatafeedId in
data_source
Requires the module datafeed to have been downloaded.
0 if call completed successfully, otherwise a standard error such as:
This function is part of the Prosody RTP processing API.