LVSpeechPort::StreamSendData

Send data buffer of sound data to stream.

int StreamSendData(void* SoundData, int SoundDataLength);

Return Values

LV_SUCCESS

No errors; data accepted.

A negative result indicates a specific error:

-19: LV_STREAM_NOT_ACCEPTED: The data was not accepted, likely because the port was not ready to receive data. Ensure that StreamStart was called.

Parameters

HPort

The port's handle.

SoundData

Pointer to the memory buffer containing the sound data.

SoundDataLength

Size of the sound data, in bytes.

Remarks

This function is used to do the actual streaming. Call it with each sound data buffer.  This call copies sound data to an internal buffer and returns immediately. The processing of sound data takes place on a background thread.

See Also


Complete Help Topic List | Speech Engine Product Information