SetVoiceThreshold

Syntax

int SetVoiceThreshold(nVoice,nNotes)

This function sets the threshold level for the given voice. When the number of notes remaining in the voice queue goes below that specified in the nNotes parameter, the threshold flag is set. If the queue level is below that specified in nNotes when the SetVoiceThreshold function is called, the flag is not set. The GetThresholdStatus function should be called to verify the current threshold status.

Parameter Type/Description  

nVoice int Specifies the voice queue to be set.  
nNotes int Specifies the number of notes in the threshold level.  

Return Value

The return value specifies the result of the function. It is zero if the function is successful. It is 1 if the number of notes specified in nNotes is out of range.