Functions
AtrasrClient.cpp File Reference
#include "AtrasrClient.h"
#include <QtEndian>
#include <QDebug>
Include dependency graph for AtrasrClient.cpp:

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)

Function Documentation

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.

Parameters:
clientthe client object.

Definition at line 50 of file AtrasrClient.cpp.

int AtrasrConnect ( ATRASR_CLIENT client,
const char *  srvHost,
int  srvPort 
)

Connect to ATRASR.

Returns:
0 to success.
Parameters:
clientthe client object.
srvHosthost name.
srvPortport number.

Definition at line 29 of file AtrasrClient.cpp.

unsigned char* AtrasrParseFrame ( ATRASR_CLIENT client,
int  nIndex,
long *  type 
)

Parse received frames.

Returns:
the pointer to sound data.
Parameters:
clientthe client object.
nIndexthe index of the received frames.
type[out] Frame type.

Definition at line 243 of file AtrasrClient.cpp.

int AtrasrReceiveFrame ( ATRASR_CLIENT client)

Receive frames.

Returns:
received frame count.
Parameters:
clientthe client object.

Definition at line 209 of file AtrasrClient.cpp.

int AtrasrSendCANCELPU ( ATRASR_CLIENT client)

Send CANCELPU (cancel of speech).

Returns:
0 to success.
Parameters:
clientthe client object.

Definition at line 203 of file AtrasrClient.cpp.

int AtrasrSendDATA ( ATRASR_CLIENT client,
const char *  data,
size_t  size 
)

Send sound data.

Returns:
0 to success.
Parameters:
clientthe client object.
datasound data buffer.
sizelength of the data.

Definition at line 162 of file AtrasrClient.cpp.

int AtrasrSendENDPU ( ATRASR_CLIENT client)

Send ENDPU (end of speech).

Returns:
0 to success.
Parameters:
clientthe client object.

Definition at line 197 of file AtrasrClient.cpp.

int AtrasrSendEOF ( ATRASR_CLIENT client)

Send EOF(End of file).

Returns:
0 to success.
Parameters:
clientthe client object.

Definition at line 96 of file AtrasrClient.cpp.

int AtrasrSendSTARTPU ( ATRASR_CLIENT client)

Send STARTPU (start of speech).

Returns:
0 to success.
Parameters:
clientthe client object.

Definition at line 189 of file AtrasrClient.cpp.

int AtrasrSendTOF ( ATRASR_CLIENT client)

Send TOF(Top of file).

Returns:
0 to success.
Parameters:
clientthe client object.

Definition at line 85 of file AtrasrClient.cpp.



rospeex_audiomonitor
Author(s): Komei Sugiura
autogenerated on Thu Jun 6 2019 18:53:06