Go to the source code of this file.
Functions | |
static void | _AtrasrInitRecvBuf (ATRASR_CLIENT *client) |
static void | _AtrasrInitSendBuf (ATRASR_CLIENT *client) |
static int | _AtrasrSendDATA (ATRASR_CLIENT *client, const char *data, size_t size) |
static int | _AtrasrSendFrame (ATRASR_CLIENT *client, ATRASR_FRAME_TYPE type) |
static void | _AtrasrSwapFrameData (unsigned char *pBuf, size_t len) |
void | AtrasrClose (ATRASR_CLIENT *client) |
int | AtrasrConnect (ATRASR_CLIENT *client, const char *srvHost, int srvPort) |
unsigned char * | AtrasrParseFrame (ATRASR_CLIENT *client, int nIndex, long *type) |
int | AtrasrReceiveFrame (ATRASR_CLIENT *client) |
int | AtrasrSendCANCELPU (ATRASR_CLIENT *client) |
int | AtrasrSendDATA (ATRASR_CLIENT *client, const char *data, size_t size) |
int | AtrasrSendENDPU (ATRASR_CLIENT *client) |
int | AtrasrSendEOF (ATRASR_CLIENT *client) |
int | AtrasrSendSTARTPU (ATRASR_CLIENT *client) |
int | AtrasrSendTOF (ATRASR_CLIENT *client) |
static void _AtrasrInitRecvBuf | ( | ATRASR_CLIENT * | client | ) | [static] |
Definition at line 24 of file AtrasrClient.cpp.
static void _AtrasrInitSendBuf | ( | ATRASR_CLIENT * | client | ) | [static] |
Definition at line 19 of file AtrasrClient.cpp.
static int _AtrasrSendDATA | ( | ATRASR_CLIENT * | client, |
const char * | data, | ||
size_t | size | ||
) | [static] |
Definition at line 102 of file AtrasrClient.cpp.
static int _AtrasrSendFrame | ( | ATRASR_CLIENT * | client, |
ATRASR_FRAME_TYPE | type | ||
) | [static] |
Definition at line 60 of file AtrasrClient.cpp.
static void _AtrasrSwapFrameData | ( | unsigned char * | pBuf, |
size_t | len | ||
) | [static] |
Definition at line 6 of file AtrasrClient.cpp.
void AtrasrClose | ( | ATRASR_CLIENT * | client | ) |
Disconnect to ATRASR.
client | the client object. |
Definition at line 50 of file AtrasrClient.cpp.
int AtrasrConnect | ( | ATRASR_CLIENT * | client, |
const char * | srvHost, | ||
int | srvPort | ||
) |
Connect to ATRASR.
client | the client object. |
srvHost | host name. |
srvPort | port number. |
Definition at line 29 of file AtrasrClient.cpp.
unsigned char* AtrasrParseFrame | ( | ATRASR_CLIENT * | client, |
int | nIndex, | ||
long * | type | ||
) |
Parse received frames.
client | the client object. |
nIndex | the index of the received frames. |
type | [out] Frame type. |
Definition at line 243 of file AtrasrClient.cpp.
int AtrasrReceiveFrame | ( | ATRASR_CLIENT * | client | ) |
Receive frames.
client | the client object. |
Definition at line 209 of file AtrasrClient.cpp.
int AtrasrSendCANCELPU | ( | ATRASR_CLIENT * | client | ) |
Send CANCELPU (cancel of speech).
client | the client object. |
Definition at line 203 of file AtrasrClient.cpp.
int AtrasrSendDATA | ( | ATRASR_CLIENT * | client, |
const char * | data, | ||
size_t | size | ||
) |
Send sound data.
client | the client object. |
data | sound data buffer. |
size | length of the data. |
Definition at line 162 of file AtrasrClient.cpp.
int AtrasrSendENDPU | ( | ATRASR_CLIENT * | client | ) |
Send ENDPU (end of speech).
client | the client object. |
Definition at line 197 of file AtrasrClient.cpp.
int AtrasrSendEOF | ( | ATRASR_CLIENT * | client | ) |
Send EOF(End of file).
client | the client object. |
Definition at line 96 of file AtrasrClient.cpp.
int AtrasrSendSTARTPU | ( | ATRASR_CLIENT * | client | ) |
Send STARTPU (start of speech).
client | the client object. |
Definition at line 189 of file AtrasrClient.cpp.
int AtrasrSendTOF | ( | ATRASR_CLIENT * | client | ) |
Send TOF(Top of file).
client | the client object. |
Definition at line 85 of file AtrasrClient.cpp.