Loads audio data into a specified voice channel. Used prior to Decode (which decodes the audio data).
- int LoadVoiceChannel(int VoiceChannel, void* M, int Length, SOUND_FORMAT Format)
Accepted values 0 through 63.
Pointer to audio data.
Memory size in bytes of the audio data.
The audio data sound format. SOUND_FORMAT is an enumerated type that has the following values:
UNK_FORMAT = 0
ULAW_8KHZ = 1
PCM_8KHZ = 2
PCM_16KHZ = 3
ALAW_8KHZ = 4
No errors; the voice channel audio successfully loaded.
The port is not valid (either CreateClient has not been called or DestroyClient has been called prior to this call).
The specified voice channel is out of range (0-63).
The specified sound format is invalid.
This voice channel could not be loaded since the port was shutting down.
Indicates that the load voice channel operation timed out.
An exception occurred while processing the request.
Each LV_SpeechPort supports 64 separate voice channels. Each channel has its own separate storage for decode data, so once the call is made, the client application can release its own copy. LoadVoiceChannel will accept the audio data and prepare it for decoding.