int sm_channel_set_output_threshold(struct sm_channel_set_output_threshold_parms *thp)
typedef struct sm_channel_set_output_threshold_parms { tSMChannelId channel; /* in */ tSM_INT minimum_bits; /* in */ } SM_CHANNEL_SET_OUTPUT_THRESHOLD_PARMS;
A channel is considered to be ready for you to supply data to it when there is enough space. This call allows you to specify how much is 'enough'.
While there is enough space for more data to make a channel ready, the channel's associated write event (as configured with sm_channel_set_event()) remains set.
See also the document Prosody application note: considerations for data transfer thresholds.
0 if call completed successfully, otherwise a standard error such as:
This function is part of the Prosody speech processing API.