SetVoiceQueueSize

Syntax

int SetVoiceQueueSize(nVoice,nBytes)

This function allocates the number of bytes specified by the nBytes parameter for the voice queue specified by the nVoice parameter. If the queue size is not set, the default is 192 bytes, which is room for about 32 notes. All voice queues are locked in memory. The queues cannot be set while music is playing.

Parameter Type/Description  

nVoice int Specifies a voice queue.  
nBytes int Specifies the number of bytes in the voice queue.  

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:

Value Meaning  

S_SERMACT Music active  
S_SEROFM Out of memory