#include <sent/stddefs.h>
#include <sent/adin.h>
#include <sent/tcpip.h>
Include dependency graph for adin_tcpip.c:
Go to the source code of this file.
Functions | |
boolean | adin_tcpip_standby (int freq, void *port_str) |
boolean | adin_tcpip_begin () |
boolean | adin_tcpip_end () |
End recording. | |
int | adin_tcpip_read (SP16 *buf, int sampnum) |
boolean | adin_tcpip_send_pause () |
boolean | adin_tcpip_send_resume () |
boolean | adin_tcpip_send_terminate () |
Variables | |
static int | adinnet_sd = -1 |
Listen socket for adinserv. | |
static int | adinnet_asd = -1 |
Accept socket for adinserv. | |
static boolean | last_is_segmented = FALSE |
FALSE if last segment was an end of connection. |
This input works on Linux, Windows and most OS where Julius can run.
"EsounD" is an another method of obtaining audio input from network on Linux. See adin_esd.c for details.
Definition in file adin_tcpip.c.
|
Initialize as adinnet server: prepare to become server.
Definition at line 78 of file adin_tcpip.c. Referenced by adin_select(). |
|
Wait for connection from adinnet client and begin audio input stream.
Definition at line 100 of file adin_tcpip.c. Referenced by adin_select(). |
|
End recording. If last input segment was segmented by end of connection, close socket and wait for next connection. Otherwise, it means that the last input segment was segmented by either end-of-segment signal from client side or speech detection function in server side, so just wait for a next input in the current socket.
Definition at line 146 of file adin_tcpip.c. Referenced by adin_select(). |
|
Try to read sampnum samples and returns actual sample num recorded. This function will not block. If data of zero length has been received, it is treated as a end-of-segment marker from the client. If data below zero length has been received, it means the client has finished the overall input stream transmission and want to disconnect.
Definition at line 177 of file adin_tcpip.c. Referenced by adin_select(). |
|
Tell the adinnet client to pause transfer.
Definition at line 223 of file adin_tcpip.c. |
|
Tell the adinnet client to resume the paused transfer.
Definition at line 240 of file adin_tcpip.c. |
|
Tell the adinnet client to terminate transfer.
Definition at line 257 of file adin_tcpip.c. |