int sm_conf_prim_add(struct sm_conf_prim_add_parms *confp)
typedef struct sm_conf_prim_add_parms {
tSMChannelId channel; /* in */
tSMChannelId participant; /* in */
tSM_INT id; /* out */
/* Only in Prosody version 2 (TiNG) */
float factor; /* in */
/* End of part only in Prosody version 2 (TiNG) */
} SM_CONF_PRIM_ADD_PARMS;
Adds a new conference participant to the set of input channels whose conferenced sum is currently being output on output channel channel. All channels in a conference must have been allocated on a single Prosody processor module.
The participant must be a channel which has been attached to conferencing with sm_conf_prim_attach() unless the conference type is kSMConfTypeStandard in which case the channel input is implicitly attached if necessary.
On return id will be set to a value between 0 and 63, this value being an identifier for this conference participant. This identifier may be used to determine if this participant is currently active in the conference (see sm_conf_prim_info()), and in the call for the participant to leave the conference (see sm_conf_prim_leave()).
Note that a particular participant input channel is assigned the same id for every conference it is added into (or cloned into) while attached. If a channel is detached and attached again, it may be allocated a different id value.
factor = pow(10, dB / 20).
If the module is configured for standard
conferencing, this field must be zero and the input signal is
not modified before being added into the conference output.
0 if call completed successfully, otherwise a standard error such as:
This function is part of the Prosody speech processing API.