WaitSoundState

Syntax

int WaitSoundState(nState)

This function waits until the play driver enters the specified state.

Parameter Type/Description  

nState int Specifies the state of the voice queues. It can be any one of the following values:  
  Value Meaning
  S_ALLTHRESHOLD All voices have reached threshold.
  Value Meaning
  S_QUEUEEMPTY All voice queues are empty and sound drivers turned off.
  S_THRESHOLD A voice queue has reached threshold, and returns voice.

Return Value

The return value specifies the result of the function. It is zero if the function is successful. If the state is not valid, the return value is S_SERDST.