LV_SRE_StreamSetStateChangeCallBack

Set up a callback to receive state change notification of a stream.

int LV_SRE_StreamSetStateChangeCallBack(HPORT hport, LV_SRE_StreamStateChangeFn* fn, void* UserData);

Return Values

LV_SUCCESS

No errors; data accepted.

A negative result indicates a specific error:

-12: LV_INVALID_HPORT: the specified handle is invalid.

Parameters

HPort

The port's handle.

LV_SRE_StreamStateChangeFn

Pointer to the callback function to receive state change updates.  See Stream Callback.

UserData

Application defined data sent back in callback.

Remarks

Each time a streams status changes, this callback will be called.

See Also


Complete Help Topic List | Speech Engine Product Information