SetVoiceSound
Syntax
int SetVoiceSound(nVoice,lFrequency,nDuration)
This function queues the sound frequency and duration in the voice queue specified by the nVoice parameter.
| Parameter |
Type/Description |
|
| nVoice |
int Specifies a voice queue. The first voice queue is numbered 1. |
|
| lFrequency |
long Specifies the frequency. The high-order word contains the frequency in hertz, and the low-order word contains the fractional frequency. |
|
| nDuration |
int Specifies the duration of the sound (in clock ticks). |
|
Return Value
The return value specifies the result of the function. It is zero if the function is successful. If an error occurs, the return value is one of the following values:
| S_SERDDR |
Invalid duration |
|
| S_SERDFQ |
Invalid frequency |
|
| S_SERDVL |
Invalid volume |
|
| S_SERQFUL |
Queue full |
|